Package org.togglz.core.proxy
Class FeatureProxyInvocationHandler
java.lang.Object
org.togglz.core.proxy.FeatureProxyInvocationHandler
- All Implemented Interfaces:
InvocationHandler
A
InvocationHandler implementation that delegates invocation to one of two object depending on the state of the
specified feature.- Author:
- Christian Kaltepoth
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureProxyInvocationHandler(Feature feature, Object active, Object inactive) FeatureProxyInvocationHandler(Feature feature, Object active, Object inactive, FeatureManager featureManager) -
Method Summary
-
Constructor Details
-
FeatureProxyInvocationHandler
-
FeatureProxyInvocationHandler
public FeatureProxyInvocationHandler(Feature feature, Object active, Object inactive, FeatureManager featureManager)
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
getFeature
-
getActive
-
getInactive
-