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();
}
}
}