Package org.togglz.deltaspike.activation
Class DeltaSpikePropertyActivationStrategy
- java.lang.Object
-
- org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
-
- org.togglz.deltaspike.activation.DeltaSpikePropertyActivationStrategy
-
- All Implemented Interfaces:
ActivationStrategy
public class DeltaSpikePropertyActivationStrategy extends AbstractPropertyDrivenActivationStrategy
An activation strategy based on the values of properties accessible within the DeltaSpike configuration.
It can either be based on a given property name, passed via the ""name"" parameter, or a property name derived from the
Featureitself (e.g. ""togglz."FEATURE_NAME").- Author:
- Alasdair Mercer
- See Also:
AbstractPropertyDrivenActivationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static StringID-
Fields inherited from class org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
PARAM_NAME, PARAM_PROPERTY_VALUE
-
-
Constructor Summary
Constructors Constructor Description DeltaSpikePropertyActivationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()StringgetName()protected StringgetPropertyValue(FeatureState featureState, FeatureUser user, String name)-
Methods inherited from class org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
getParameters, getPropertyName, getPropertyNameParam, isActive, isActive
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
getPropertyValue
protected String getPropertyValue(FeatureState featureState, FeatureUser user, String name)
- Specified by:
getPropertyValuein classAbstractPropertyDrivenActivationStrategy
-
-