public abstract class


extends AbstractComponentAdaptor<T>
   ↳ com.atlassian.jira.config.component.AbstractComponentAdaptor<T>
     ↳ com.atlassian.jira.config.component.SimpleSwitchingComponentAdaptor<T>

Class Overview

A simple component adapter that will pull the implementation of the object from the container.

Sub classes will need to implement getComponentImplementation() and specify the correct class.

This class returns the object directly (no fancy dynamic proxies), so consumers of these objects should not cache them if they wish to be updated when the object changes.


Inherited Fields
From class com.atlassian.jira.config.component.AbstractComponentAdaptor
Protected Constructors
SimpleSwitchingComponentAdaptor(Class<T> interfaceClass)
Public Methods
T getComponentInstance(PicoContainer container)
String getDescriptor()
Inherited Methods
From class com.atlassian.jira.config.component.AbstractComponentAdaptor
From class java.lang.Object
From interface org.picocontainer.ComponentAdapter

Protected Constructors

protected SimpleSwitchingComponentAdaptor (Class<T> interfaceClass)

Public Methods

public T getComponentInstance (PicoContainer container)


public String getDescriptor ()