Package org.togglz.core.annotation
Annotation Type DefaultActivationStrategy
-
@Retention(RUNTIME) @Target(FIELD) public @interface DefaultActivationStrategy
Allows to specify the default activation strategy if theStateRepositorydoesn'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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ActivationParameter[]parametersOptional list of parameters to set for the strategy.
-
-
-
Element Detail
-
id
String id
The unique ID of the strategy. Corresponds to the value returned byActivationStrategy.getId()
-
-
-
parameters
ActivationParameter[] parameters
Optional list of parameters to set for the strategy.- Default:
- {}
-
-