Package org.togglz.core.util
Class FeatureStateStorageWrapper
java.lang.Object
org.togglz.core.util.FeatureStateStorageWrapper
- All Implemented Interfaces:
Serializable
Wraps the state of a feature (minus the feature itself) to make it easier to store
the state of a feature in a cache and then recreate the FeatureState later.
This can help assist in the creation of StateRepositories in some circumstances
Created by ddcbdevins on 5/27/16.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureState
featureStateForWrapper
(Feature feature, FeatureStateStorageWrapper wrapper) boolean
void
setEnabled
(boolean enabled) void
setStrategyId
(String strategyId) static FeatureStateStorageWrapper
wrapperForFeatureState
(FeatureState featureState)
-
Constructor Details
-
FeatureStateStorageWrapper
public FeatureStateStorageWrapper()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getStrategyId
-
setStrategyId
-
getParameters
-
wrapperForFeatureState
-
featureStateForWrapper
public static FeatureState featureStateForWrapper(Feature feature, FeatureStateStorageWrapper wrapper)
-