com.atlassian.jira.config.component
Class SwitchingInvocationHandler

java.lang.Object
  extended by com.atlassian.jira.config.component.SwitchingInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class SwitchingInvocationHandler
extends Object
implements InvocationHandler


Constructor Summary
protected SwitchingInvocationHandler(Object enabled, Object disabled, InvocationSwitcher invocationSwitcher)
           
 
Method Summary
 Object getImplementingObject()
          Cache the value of the object returned from the container
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchingInvocationHandler

protected SwitchingInvocationHandler(Object enabled,
                                     Object disabled,
                                     InvocationSwitcher invocationSwitcher)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getImplementingObject

public Object getImplementingObject()
Cache the value of the object returned from the container


isEnabled

protected boolean isEnabled()


Copyright © 2002-2009 Atlassian. All Rights Reserved.