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

org.datafx.featuretoggle.DisableByFeatureResourceConsumer Maven / Gradle / Ivy

There is a newer version: 8.0b5
Show newest version
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