Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
Add Comment
Please, Sign In to add comment