public class SynchronizedComponentAdapter extends DecoratingComponentAdapter
Constructor and Description |
---|
SynchronizedComponentAdapter(ComponentAdapter delegate) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComponentInstance(PicoContainer container)
Retrieve the component instance.
|
accept, changeMonitor, currentMonitor, dispose, dispose, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, hasLifecycle, start, start, stop, stop, toString, verify
public SynchronizedComponentAdapter(ComponentAdapter delegate)
public java.lang.Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException
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.