public class HiddenImplementation<T> extends AbstractBehavior<T>
for a more feature-rich version of this class.,
Serialized FormComponentAdapter.NOTHINGdelegate| Constructor and Description |
|---|
HiddenImplementation(ComponentAdapter<T> delegate)
Creates an ImplementationHidingComponentAdapter with a delegate
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
createProxy(Class[] interfaces,
PicoContainer container,
ClassLoader classLoader) |
T |
getComponentInstance(PicoContainer container,
Type into)
Retrieve the component instance.
|
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()
|
protected Object |
invokeMethod(Object componentInstance,
Method method,
Object[] args,
PicoContainer container) |
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, isStarted, start, start, stop, stop, toString, verifypublic HiddenImplementation(ComponentAdapter<T> delegate)
delegate - the component adapter to which this adapter delegatespublic T getComponentInstance(PicoContainer container, Type into) throws PicoCompositionException
ComponentAdapterCached will always return the
same instance.getComponentInstance in interface ComponentAdapter<T>getComponentInstance in class AbstractBehavior<T>container - the PicoContainer, that is used to resolve any possible dependencies of the instance.into - the class that is about to be injected into. Use ComponentAdapter.NOTHING.class if this is not important to you.PicoCompositionException - if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambiguous situation within the
container.public String getDescriptor()
ComponentAdapterprotected T createProxy(Class[] interfaces, PicoContainer container, ClassLoader classLoader)
protected Object invokeMethod(Object componentInstance, Method method, Object[] args, PicoContainer container) throws Throwable
ThrowableCopyright © 2003-2014 Codehaus. All Rights Reserved.