org.picocontainer.behaviors
Class Synchronized
java.lang.Object
org.picocontainer.behaviors.AbstractBehavior
org.picocontainer.behaviors.Synchronized
- All Implemented Interfaces:
- Serializable, Behavior, ComponentAdapter, ComponentMonitorStrategy, LifecycleStrategy
public class Synchronized
- extends AbstractBehavior
- Author:
- Aslak Hellesøy, Manish Shah
- See Also:
- Serialized Form
| Methods inherited from class org.picocontainer.behaviors.AbstractBehavior |
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, start, start, stop, stop, verify |
Synchronized
public Synchronized(ComponentAdapter delegate)
getComponentInstance
public Object getComponentInstance(PicoContainer container)
throws PicoCompositionException
- Description copied from interface:
ComponentAdapter
- Retrieve the component instance. This method will usually create a new instance each time it is called, but that
is not required. For example,
Cached will always return the
same instance.
- Specified by:
getComponentInstance in interface ComponentAdapter- Overrides:
getComponentInstance in class AbstractBehavior
- Parameters:
container - the PicoContainer, that is used to resolve any possible dependencies of the instance.
- Returns:
- the component instance.
- Throws:
PicoCompositionException - if the component could not be instantiated.
toString
public String toString()
- Overrides:
toString in class AbstractBehavior
Copyright © 2003-2007 Codehaus. All Rights Reserved.