Package org.togglz.appengine.repository
Class FixedNamespaceStateRepository
java.lang.Object
org.togglz.appengine.repository.FixedNamespaceStateRepository
- All Implemented Interfaces:
StateRepository
Decorates the given StateRepository enforcing its operations to run within a given namespace.
Uses GAE's
NamespaceManager to enforce the given namespace.- Author:
- Fábio Franco Uechi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureState(Feature feature) voidsetFeatureState(FeatureState featureState) static <R> RwithinNamespace(String namespace, org.togglz.appengine.repository.FixedNamespaceStateRepository.Work<R> work)
-
Constructor Details
-
FixedNamespaceStateRepository
@Inject public FixedNamespaceStateRepository(@Named("togglzFixedNamespace") String namespace, @Named("togglzFixedNamespace") StateRepository decorated)
-
-
Method Details
-
getFeatureState
- Specified by:
getFeatureStatein interfaceStateRepository
-
setFeatureState
- Specified by:
setFeatureStatein interfaceStateRepository
-
withinNamespace
public static <R> R withinNamespace(String namespace, org.togglz.appengine.repository.FixedNamespaceStateRepository.Work<R> work)
-