com.atlassian.jira.config.component
Class AbstractComponentAdaptor<T>
java.lang.Object
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, SchedulerAdaptor, SimpleSwitchingComponentAdaptor
public abstract class AbstractComponentAdaptor<T>
- extends Object
- implements org.picocontainer.ComponentAdapter<T>
A convenience class for implementing a Pico ComponentAdapter
.
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
org.picocontainer.ComponentAdapter.NOTHING |
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 |
interfaceClass
protected final Class<T> interfaceClass
AbstractComponentAdaptor
protected AbstractComponentAdaptor(Class<T> interfaceClass)
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-2014 Atlassian. All Rights Reserved.