Package org.togglz.spring.activation
Class SpringEnvironmentPropertyActivationStrategy
java.lang.Object
org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
org.togglz.spring.activation.SpringEnvironmentPropertyActivationStrategy
- All Implemented Interfaces:
ActivationStrategy
public class SpringEnvironmentPropertyActivationStrategy
extends AbstractPropertyDrivenActivationStrategy
An activation strategy based on the values of properties accessible within the Spring environment.
It can either be based on a given property name, passed via the ""name"" parameter, or a property name
derived from the Feature itself (e.g. ""togglz."FEATURE_NAME").
- Author:
- Alasdair Mercer
- See Also:
-
Field Summary
FieldsFields inherited from class org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
PARAM_NAME, PARAM_PROPERTY_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()protected StringgetPropertyValue(FeatureState featureState, FeatureUser user, String name) Methods inherited from class org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy
getParameters, getPropertyName, getPropertyNameParam, isActive, isActive
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
SpringEnvironmentPropertyActivationStrategy
public SpringEnvironmentPropertyActivationStrategy()
-
-
Method Details
-
getId
-
getName
-
getPropertyValue
- Specified by:
getPropertyValuein classAbstractPropertyDrivenActivationStrategy
-