All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.collaborationengine.SingleUseActivationHandler Maven / Gradle / Ivy

package com.vaadin.collaborationengine;

class SingleUseActivationHandler implements ActivationHandler {
    private ActivationHandler activationHandler;

    SingleUseActivationHandler(ActivationHandler activationHandler) {
        this.activationHandler = activationHandler;
    }

    @Override
    public void accept(ActionDispatcher actionDispatcher) {
        if (this.activationHandler == null) {
            return;
        }
        this.activationHandler.accept(actionDispatcher);
        this.activationHandler = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy