@Retention(value=RUNTIME) @Target(value=FIELD) public @interface DefaultActivationStrategy
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;
}
| Modifier and Type | Required Element and Description |
|---|---|
String |
id
The unique ID of the strategy.
|
| Modifier and Type | Optional Element and Description |
|---|---|
ActivationParameter[] |
parameters
Optional list of parameters to set for the strategy.
|
public abstract String id
ActivationStrategy.getId()public abstract ActivationParameter[] parameters
Copyright © 2018. All Rights Reserved.