Last active
April 8, 2018 16:37
-
-
Save nattaphonjeamjit/31d17b9048ce3d8b65d7cddce11cf200 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.togglz.core.Feature; | |
public enum FeatureEnum implements Feature { | |
@Label("Promotion Management Feature") | |
@EnabledByDefault | |
@DefaultActivationStrategy( | |
id = SystemPropertyActivationStrategy.ID, | |
parameters = { @ActivationParameter(name = SystemPropertyActivationStrategy.PARAM_PROPERTY_NAME, | |
value = "promotion.feature"), | |
@ActivationParameter(name = SystemPropertyActivationStrategy.PARAM_PROPERTY_VALUE, | |
value = "true") }) | |
PROMOTION_MANAGEMENT_FEATURE; | |
public boolean isActive() { | |
return FeatureContext.getFeatureManager().isActive(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment