com.atlassian.jira.config.component
Class SwitchingInvocationHandler

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

public class SwitchingInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Constructor Summary
protected SwitchingInvocationHandler(java.lang.Object enabled, java.lang.Object disabled, InvocationSwitcher invocationSwitcher)
           
 
Method Summary
 java.lang.Object getImplementingObject()
          Cache the value of the object returned from the container
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.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(java.lang.Object enabled,
                                     java.lang.Object disabled,
                                     InvocationSwitcher invocationSwitcher)
Method Detail

invoke

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

getImplementingObject

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


isEnabled

protected boolean isEnabled()


Copyright © 2002-2010 Atlassian. All Rights Reserved.