Package org.togglz.core.manager
Class PropertyFeatureProvider
java.lang.Object
org.togglz.core.manager.PropertyFeatureProvider
- All Implemented Interfaces:
FeatureProvider
Implementation of FeatureProvider that reads all the feature specification from a Properties instance. This
provider is especially useful in distributed environments.
The feature specification has the following format:
<feature>=<label>;<enabledByDefault>[;<group1>,<group2>,...]
The following example shows how a concrete specification could look like
FEATURE_ONE=A useful feature;true;Group 1,Group 3 FEATURE_TWO=Some other feature;false;Group 2
- Author:
- Mauro Talevi, Christian Kaltepoth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all valid features, nevernull.getMetaData(Feature feature) Returns theFeatureMetaDatafor the given feature.
-
Constructor Details
-
PropertyFeatureProvider
-
-
Method Details
-
getFeatures
Description copied from interface:FeatureProviderReturns a list of all valid features, nevernull.- Specified by:
getFeaturesin interfaceFeatureProvider
-
getMetaData
Description copied from interface:FeatureProviderReturns theFeatureMetaDatafor the given feature. May return null if no metadata is available.- Specified by:
getMetaDatain interfaceFeatureProvider
-