org.datafx.featuretoggle.DisableByFeatureResourceConsumer Maven / Gradle / Ivy
package org.datafx.featuretoggle;
import javafx.scene.Node;
import org.datafx.controller.context.ViewContext;
import org.datafx.controller.context.resource.ControllerResourceConsumer;
public class DisableByFeatureResourceConsumer implements ControllerResourceConsumer {
@Override
public void consumeResource(DisabledByFeature annotation, Node resource, ViewContext> context) {
FeatureHandler.getInstance().disableByFeature(resource, annotation.value());
}
@Override
public Class getSupportedAnnotation() {
return DisabledByFeature.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy