public class ImplementationHidingComponentAdapter extends DecoratingComponentAdapter
org.picocontainer.alternatives
for a more feature-rich version of this class.
,
Serialized FormModifier 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, verify
public 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
ComponentAdapter
CachingComponentAdapter
will always return the
same instance.getComponentInstance
in interface ComponentAdapter
getComponentInstance
in class DecoratingComponentAdapter
container
- 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.AssignabilityRegistrationException
NotConcreteRegistrationException
private java.lang.Object createProxy(java.lang.Class[] interfaces, PicoContainer container, java.lang.ClassLoader classLoader)
private java.lang.Class[] verifyInterfacesOnly(java.lang.Class[] classes)