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

com.github.cloudyrock.dimmer.FeatureProcessorLocal Maven / Gradle / Ivy

package com.github.cloudyrock.dimmer;

public class FeatureProcessorLocal extends FeatureProcessorBase
        implements FeatureExecutor {

    @Override
    public Object executeDimmerFeature(String feature,
                                       FeatureInvocation featureInvocation,
                                       MethodCaller realMethod) throws Throwable {
        if (isFeatureConfigured(feature)) {
            return runFeature(feature, featureInvocation);
        } else {
            return realMethod.call();
        }
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy