Package org.togglz.core.proxy
Class TogglzSwitchable<T>
- java.lang.Object
-
- org.togglz.core.proxy.TogglzSwitchable<T>
-
-
Constructor Summary
Constructors Constructor Description TogglzSwitchable(FeatureManager featureManager, Feature feature, T active, T inactive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckTogglzState()Updates the internal delegate selection against theFeaturestate.static voidupdate(Object o)Manually update the internal delegation of aTogglzSwitchableagainst itsFeaturestate.
-
-
-
Field Detail
-
delegate
protected T delegate
-
-
Constructor Detail
-
TogglzSwitchable
public TogglzSwitchable(FeatureManager featureManager, Feature feature, T active, T inactive)
-
-
Method Detail
-
checkTogglzState
protected final void checkTogglzState()
Updates the internal delegate selection against theFeaturestate.
-
update
public static void update(Object o)
Manually update the internal delegation of aTogglzSwitchableagainst itsFeaturestate. This is intended for use with passive switching.- Parameters:
o- The object to update. If null or not aTogglzSwitchable, no action is taken.
-
-