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, verifypublic SynchronizedComponentAdapter(ComponentAdapter delegate)
public java.lang.Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException
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.