Package org.togglz.core.annotation
Annotation 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 -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional list of parameters to set for the strategy.
-
Element Details
-
id
String idThe unique ID of the strategy. Corresponds to the value returned byActivationStrategy.getId()
-
-
-
parameters
ActivationParameter[] parametersOptional list of parameters to set for the strategy.- Default:
- {}
-