Annotation Interface DefaultActivationStrategy


@Retention(RUNTIME) @Target(FIELD) public @interface DefaultActivationStrategy
Allows to specify the default activation strategy if the StateRepository doesn't have any state saved for the feature.
 public enum MyFeatures implements Feature {

   @DefaultActivationStrategy(
     id = UsernameActivationStrategy.ID,
     parameters = {
       @ActivationParameter(name = UsernameActivationStrategy.PARAM_USERS, value = "person1,ck,person2")
     }
   )
   FEATURE_ONE;
 }
 
Author:
Kai Hofstetter
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The unique ID of the strategy.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional list of parameters to set for the strategy.