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

java.lang.Object
  extended by com.atlassian.jira.config.component.AbstractComponentAdaptor<T>
Type Parameters:
T - the type of component
All Implemented Interfaces:
org.picocontainer.ComponentAdapter<T>
Direct Known Subclasses:
AbstractSwitchingInvocationAdaptor, SimpleSwitchingComponentAdaptor

public abstract class AbstractComponentAdaptor<T>
extends Object
implements org.picocontainer.ComponentAdapter<T>

A convenience class for implementing a Pico ComponentAdapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
org.picocontainer.ComponentAdapter.NOTHING
 
Field Summary
protected  Class<T> interfaceClass
           
 
Constructor Summary
protected AbstractComponentAdaptor(Class<T> interfaceClass)
           
 
Method Summary
 void accept(org.picocontainer.PicoVisitor visitor)
           
<U extends org.picocontainer.ComponentAdapter>
U
findAdapterOfType(Class<U> adapterType)
           
 T getComponentInstance(org.picocontainer.PicoContainer container, Type into)
           
 Object getComponentKey()
           
 org.picocontainer.ComponentAdapter<T> getDelegate()
           
 String getDescriptor()
           
 void verify(org.picocontainer.PicoContainer picoContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.picocontainer.ComponentAdapter
getComponentImplementation, getComponentInstance
 

Field Detail

interfaceClass

protected final Class<T> interfaceClass
Constructor Detail

AbstractComponentAdaptor

protected AbstractComponentAdaptor(Class<T> interfaceClass)
Method Detail

getComponentKey

public Object getComponentKey()
Specified by:
getComponentKey in interface org.picocontainer.ComponentAdapter<T>

verify

public void verify(org.picocontainer.PicoContainer picoContainer)
            throws org.picocontainer.PicoCompositionException
Specified by:
verify in interface org.picocontainer.ComponentAdapter<T>
Throws:
org.picocontainer.PicoCompositionException

getDelegate

public org.picocontainer.ComponentAdapter<T> getDelegate()
Specified by:
getDelegate in interface org.picocontainer.ComponentAdapter<T>

accept

public void accept(org.picocontainer.PicoVisitor visitor)
Specified by:
accept in interface org.picocontainer.ComponentAdapter<T>

getComponentInstance

public T getComponentInstance(org.picocontainer.PicoContainer container,
                              Type into)
                       throws org.picocontainer.PicoCompositionException
Specified by:
getComponentInstance in interface org.picocontainer.ComponentAdapter<T>
Throws:
org.picocontainer.PicoCompositionException

findAdapterOfType

public <U extends org.picocontainer.ComponentAdapter> U findAdapterOfType(Class<U> adapterType)
Specified by:
findAdapterOfType in interface org.picocontainer.ComponentAdapter<T>

getDescriptor

public String getDescriptor()
Specified by:
getDescriptor in interface org.picocontainer.ComponentAdapter<T>


Copyright © 2002-2015 Atlassian. All Rights Reserved.