public class InMemoryStateRepository extends Object implements StateRepository
StateRepository entirely on memory. This class is typically only used for
integration tests or at development time.| Constructor and Description |
|---|
InMemoryStateRepository() |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
getFeatureState(Feature feature)
Get the persisted state of a feature from the repository.
|
void |
setFeatureState(FeatureState featureState)
Persist the supplied feature state.
|
public FeatureState getFeatureState(Feature feature)
StateRepositorynull.getFeatureState in interface StateRepositoryfeature - The feature to read the state fornullpublic void setFeatureState(FeatureState featureState)
StateRepositoryStateRepository.getFeatureState(Feature) return the same state as persisted using this method.setFeatureState in interface StateRepositoryfeatureState - The feature state to persistCopyright © 2018. All Rights Reserved.