public class FileBasedStateRepository extends Object implements StateRepository
This implementation of
StateRepository stores the state of feature using a standard Java properties file.
The file has the following format:
FEATURE_ONE = true FEATURE_ONE.users = admin, chkal FEATURE_TWO = false
Please note that this class is able to detect changes made to the properties file and will automatically reload it in this case.
|Constructor and Description|
|Modifier and Type||Method and Description|
Get the persisted state of a feature from the repository.
Persist the supplied feature state.
public FeatureState getFeatureState(Feature feature)
public void setFeatureState(FeatureState featureState)
StateRepository.getFeatureState(Feature)return the same state as persisted using this method.
Copyright © 2012. All Rights Reserved.