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(Class<T> interfaceClass, Class<T> enabledClass, Class<T> disabledClass)
           
 
Method Summary
 Class<T> getComponentImplementation()
           
 Object getComponentInstance()
           
protected  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(Class<T> interfaceClass,
                                          Class<T> enabledClass,
                                          Class<T> disabledClass)
Method Detail

isEnabled

protected boolean isEnabled()

getComponentImplementation

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

getHandler

protected InvocationHandler getHandler()

getComponentInstance

public 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-2013 Atlassian. All Rights Reserved.