public class FixedNamespaceStateRepository extends Object implements StateRepository
NamespaceManager
to enforce the given namespace.Constructor and Description |
---|
FixedNamespaceStateRepository(String namespace,
StateRepository decorated) |
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.
|
static <R> R |
withinNamespace(String namespace,
org.togglz.appengine.repository.FixedNamespaceStateRepository.Work<R> work) |
public FeatureState getFeatureState(Feature feature)
StateRepository
null
.getFeatureState
in interface StateRepository
feature
- The feature to read the state fornull
public void setFeatureState(FeatureState featureState)
StateRepository
StateRepository.getFeatureState(Feature)
return the same state as persisted using this method.setFeatureState
in interface StateRepository
featureState
- The feature state to persistpublic static <R> R withinNamespace(String namespace, org.togglz.appengine.repository.FixedNamespaceStateRepository.Work<R> work)
Copyright © 2014. All Rights Reserved.