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<T>
Direct Known Subclasses:
AppPropertiesComponentAdaptor, SwitchingInvocationAdapter

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
org.picocontainer.ComponentAdapter.NOTHING
 
Field Summary
 
Fields inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
interfaceClass
 
Constructor Summary
protected AbstractSwitchingInvocationAdaptor(Class<T> interfaceClass, Class<? extends T> enabledClass, Class<? extends T> disabledClass)
           
 
Method Summary
 Class<? extends T> getComponentImplementation()
           
 T getComponentInstance(org.picocontainer.PicoContainer container)
           
protected  InvocationHandler getHandler(org.picocontainer.PicoContainer container)
           
protected abstract  InvocationSwitcher getInvocationSwitcher()
           
protected  boolean isEnabled()
           
 
Methods inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
accept, findAdapterOfType, getComponentInstance, getComponentKey, getDelegate, getDescriptor, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSwitchingInvocationAdaptor

protected AbstractSwitchingInvocationAdaptor(Class<T> interfaceClass,
                                             Class<? extends T> enabledClass,
                                             Class<? extends T> disabledClass)
Method Detail

isEnabled

protected boolean isEnabled()

getComponentImplementation

public Class<? extends T> getComponentImplementation()

getHandler

protected InvocationHandler getHandler(org.picocontainer.PicoContainer container)

getComponentInstance

public T getComponentInstance(org.picocontainer.PicoContainer container)
                       throws org.picocontainer.PicoCompositionException
Throws:
org.picocontainer.PicoCompositionException

getInvocationSwitcher

protected abstract InvocationSwitcher getInvocationSwitcher()


Copyright © 2002-2015 Atlassian. All Rights Reserved.