Guest User

Untitled

a guest
Apr 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import org.togglz.core.Feature;
  2.  
  3. public enum FeatureEnum implements Feature {
  4.  
  5. @Label("Promotion Management Feature")
  6. @EnabledByDefault
  7. @DefaultActivationStrategy(
  8. id = SystemPropertyActivationStrategy.ID,
  9. parameters = { @ActivationParameter(name = SystemPropertyActivationStrategy.PARAM_PROPERTY_NAME,
  10. value = "promotion.feature"),
  11. @ActivationParameter(name = SystemPropertyActivationStrategy.PARAM_PROPERTY_VALUE,
  12. value = "true") })
  13. PROMOTION_MANAGEMENT_FEATURE;
  14.  
  15. public boolean isActive() {
  16. return FeatureContext.getFeatureManager().isActive(this);
  17. }
  18.  
  19. }
Add Comment
Please, Sign In to add comment