public class ImplementationHidingComponentAdapter extends DecoratingComponentAdapter
org.picocontainer.alternativesfor a more feature-rich version of this class.,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private boolean |
strict |
| Constructor and Description |
|---|
ImplementationHidingComponentAdapter(ComponentAdapter delegate,
boolean strict)
Creates an ImplementationHidingComponentAdapter with a delegate
|
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Object |
createProxy(java.lang.Class[] interfaces,
PicoContainer container,
java.lang.ClassLoader classLoader) |
java.lang.Object |
getComponentInstance(PicoContainer container)
Retrieve the component instance.
|
private java.lang.Class[] |
verifyInterfacesOnly(java.lang.Class[] classes) |
accept, changeMonitor, currentMonitor, dispose, dispose, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, hasLifecycle, start, start, stop, stop, toString, verifypublic ImplementationHidingComponentAdapter(ComponentAdapter delegate, boolean strict)
delegate - the component adapter to which this adapter delegatesstrict - the scrict mode booleanpublic java.lang.Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException
ComponentAdapterCachingComponentAdapter will always return the
same instance.getComponentInstance in interface ComponentAdaptergetComponentInstance in class DecoratingComponentAdaptercontainer - the PicoContainer, that is used to resolve any possible dependencies of the instance.PicoInitializationException - if the component could not be instantiated.PicoIntrospectionException - if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambigous situation within the
container.AssignabilityRegistrationExceptionNotConcreteRegistrationExceptionprivate java.lang.Object createProxy(java.lang.Class[] interfaces,
PicoContainer container,
java.lang.ClassLoader classLoader)
private java.lang.Class[] verifyInterfacesOnly(java.lang.Class[] classes)