public class DeltaSpikeProjectStageActivationStrategy extends AbstractTokenizedActivationStrategy
An activation strategy based on the active ProjectStage within the DeltaSpike environment.
Although only one ProjectStage can be active at any given time, one or more stage names can be specified in a
comma-separated value via the ""stages"" parameter. This strategy works by only activating the feature
if at least one of the stages are currently active. Stage names are case sensitive and should match the stage class
name.
If a given stage is prefixed with the NOT operator (!), the feature will only be active if the stage is
not active. If the value of the ""stages"" parameter was "Development,!Production", the
feature would only be active if "Development" is active or if "Production" is not active.
AbstractTokenizedActivationStrategyAbstractTokenizedActivationStrategy.Token, AbstractTokenizedActivationStrategy.TokenTransformer| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
PARAM_STAGES |
| Constructor and Description |
|---|
DeltaSpikeProjectStageActivationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
getName() |
Parameter[] |
getParameters() |
String |
getTokenParameterName() |
protected boolean |
isActive(FeatureState featureState,
FeatureUser user,
List<AbstractTokenizedActivationStrategy.Token> tokens) |
getTokenParameterTransformer, isActive, tokenizepublic static final String ID
public static final String PARAM_STAGES
public DeltaSpikeProjectStageActivationStrategy()
public String getId()
public String getName()
protected boolean isActive(FeatureState featureState, FeatureUser user, List<AbstractTokenizedActivationStrategy.Token> tokens)
isActive in class AbstractTokenizedActivationStrategypublic Parameter[] getParameters()
public String getTokenParameterName()
getTokenParameterName in class AbstractTokenizedActivationStrategyCopyright © 2021. All rights reserved.