public abstract class SimpleSwitchingComponentAdaptor<T> extends AbstractComponentAdaptor<T>
Sub classes will need to implement ComponentAdapter.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.
interfaceClass
Modifier | Constructor and Description |
---|---|
protected |
SimpleSwitchingComponentAdaptor(Class<T> interfaceClass) |
Modifier and Type | Method and Description |
---|---|
T |
getComponentInstance(org.picocontainer.PicoContainer container) |
String |
getDescriptor() |
accept, findAdapterOfType, getComponentInstance, getComponentKey, getDelegate, verify
public T getComponentInstance(org.picocontainer.PicoContainer container) throws org.picocontainer.PicoCompositionException
org.picocontainer.PicoCompositionException
public String getDescriptor()
getDescriptor
in interface org.picocontainer.ComponentAdapter<T>
getDescriptor
in class AbstractComponentAdaptor<T>
Copyright © 2002-2015 Atlassian. All Rights Reserved.