com.atlassian.jira.config.component
Class AbstractSwitchingInvocationAdaptor<T>

java.lang.Object
  extended by com.atlassian.jira.config.component.AbstractComponentAdaptor<T>
      extended by com.atlassian.jira.config.component.AbstractSwitchingInvocationAdaptor<T>
All Implemented Interfaces:
org.picocontainer.ComponentAdapter
Direct Known Subclasses:
AppPropertiesComponentAdaptor, SwitchingInvocationAdapter

public abstract class AbstractSwitchingInvocationAdaptor<T>
extends AbstractComponentAdaptor<T>

Copyright (c) 2002-2004 All rights reserved.


Field Summary
 
Fields inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
container, interfaceClass
 
Constructor Summary
AbstractSwitchingInvocationAdaptor(java.lang.Class<T> interfaceClass, java.lang.Class<T> enabledClass, java.lang.Class<T> disabledClass)
           
 
Method Summary
 java.lang.Class<T> getComponentImplementation()
           
 java.lang.Object getComponentInstance()
           
protected  java.lang.reflect.InvocationHandler getHandler()
           
protected abstract  InvocationSwitcher getInvocationSwitcher()
           
protected  boolean isEnabled()
           
 
Methods inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
getComponentKey, getContainer, setContainer, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSwitchingInvocationAdaptor

public AbstractSwitchingInvocationAdaptor(java.lang.Class<T> interfaceClass,
                                          java.lang.Class<T> enabledClass,
                                          java.lang.Class<T> disabledClass)
Method Detail

isEnabled

protected boolean isEnabled()

getComponentImplementation

public java.lang.Class<T> getComponentImplementation()
Specified by:
getComponentImplementation in interface org.picocontainer.ComponentAdapter
Specified by:
getComponentImplementation in class AbstractComponentAdaptor<T>

getHandler

protected java.lang.reflect.InvocationHandler getHandler()

getComponentInstance

public java.lang.Object getComponentInstance()
                                      throws org.picocontainer.PicoInitializationException,
                                             org.picocontainer.PicoIntrospectionException
Specified by:
getComponentInstance in interface org.picocontainer.ComponentAdapter
Specified by:
getComponentInstance in class AbstractComponentAdaptor<T>
Throws:
org.picocontainer.PicoInitializationException
org.picocontainer.PicoIntrospectionException

getInvocationSwitcher

protected abstract InvocationSwitcher getInvocationSwitcher()


Copyright © 2002-2010 Atlassian. All Rights Reserved.