org.picocontainer.behaviors
Class Locked

java.lang.Object
  extended by org.picocontainer.behaviors.AbstractBehavior
      extended by org.picocontainer.behaviors.Locked
All Implemented Interfaces:
Serializable, Behavior, ComponentAdapter, ComponentMonitorStrategy, LifecycleStrategy

public class Locked
extends AbstractBehavior

Author:
Paul Hammant
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.picocontainer.behaviors.AbstractBehavior
delegate
 
Constructor Summary
Locked(ComponentAdapter delegate)
           
 
Method Summary
 Object getComponentInstance(PicoContainer container)
          Retrieve the component instance.
 String toString()
           
 
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, start, start, stop, stop, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Locked

public Locked(ComponentAdapter delegate)
Method Detail

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.