public class ExpressionFlipStrategy extends AbstractFlipStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_EXPRESSION
Expected parameter.
|
| Constructor and Description |
|---|
ExpressionFlipStrategy()
Default constructor using introspection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(String featureName,
FeatureStore currentStore,
FlippingExecutionContext executionContext)
Tell if flip should be realized.
|
void |
init(String featureName,
Map<String,String> initValue)
Allow to parameterized Flipping Strategy
|
assertRequiredParameter, getInitParams, getType, toStringpublic static String PARAM_EXPRESSION
public ExpressionFlipStrategy()
public void init(String featureName, Map<String,String> initValue)
init in interface FlippingStrategyinit in class AbstractFlipStrategyfeatureName - current featureNamepublic boolean evaluate(String featureName, FeatureStore currentStore, FlippingExecutionContext executionContext)
featureName - target featureNameexecutionContext - custom params to make decisionCopyright © 2013–2015 FF4J. All rights reserved.