Package org.togglz.core.util
Class FeatureStateStorageWrapper
- java.lang.Object
-
- org.togglz.core.util.FeatureStateStorageWrapper
-
- All Implemented Interfaces:
Serializable
public class FeatureStateStorageWrapper extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FeatureStateStorageWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeatureStatefeatureStateForWrapper(Feature feature, FeatureStateStorageWrapper wrapper)Map<String,String>getParameters()StringgetStrategyId()booleanisEnabled()voidsetEnabled(boolean enabled)voidsetStrategyId(String strategyId)static FeatureStateStorageWrapperwrapperForFeatureState(FeatureState featureState)
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getStrategyId
public String getStrategyId()
-
setStrategyId
public void setStrategyId(String strategyId)
-
wrapperForFeatureState
public static FeatureStateStorageWrapper wrapperForFeatureState(FeatureState featureState)
-
featureStateForWrapper
public static FeatureState featureStateForWrapper(Feature feature, FeatureStateStorageWrapper wrapper)
-
-