daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top