org.picocontainer.tck
Class AbstractPicoContainerTest.TestBehavior
java.lang.Object
org.picocontainer.behaviors.AbstractBehavior
org.picocontainer.tck.AbstractPicoContainerTest.TestBehavior
- All Implemented Interfaces:
- Serializable, Behavior, ComponentAdapter, ComponentMonitorStrategy, LifecycleStrategy
- Enclosing class:
- AbstractPicoContainerTest
public static final class AbstractPicoContainerTest.TestBehavior
- extends AbstractBehavior
- implements Behavior
- See Also:
- Serialized Form
Method Summary |
boolean |
componentHasLifecycle()
Invokes delegate hasLifecycle method if the delegate is a Behavior
Test if a component honors a lifecycle. |
void |
dispose(PicoContainer node)
Invokes delegate dispose method if the delegate is a Behavior
Invoke the "dispose" method on the component. |
String |
getDescriptor()
Get a string key descriptor of the component adapter. |
void |
start(PicoContainer node)
Invokes delegate start method if the delegate is a Behavior
Invoke the "start" method on the component. |
void |
stop(PicoContainer node)
Invokes delegate stop method if the delegate is a Behavior
Invoke the "stop" method on the component. |
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior |
accept, changeMonitor, currentMonitor, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, start, stop, toString, verify |
started
public final ArrayList<PicoContainer> started
AbstractPicoContainerTest.TestBehavior
public AbstractPicoContainerTest.TestBehavior(ComponentAdapter delegate)
start
public void start(PicoContainer node)
- Description copied from class:
AbstractBehavior
- Invokes delegate start method if the delegate is a Behavior
Invoke the "start" method on the component.
- Specified by:
start
in interface Behavior
- Overrides:
start
in class AbstractBehavior
- Parameters:
node
- the container to "start" the component
stop
public void stop(PicoContainer node)
- Description copied from class:
AbstractBehavior
- Invokes delegate stop method if the delegate is a Behavior
Invoke the "stop" method on the component.
- Specified by:
stop
in interface Behavior
- Overrides:
stop
in class AbstractBehavior
- Parameters:
node
- the container to "stop" the component
dispose
public void dispose(PicoContainer node)
- Description copied from class:
AbstractBehavior
- Invokes delegate dispose method if the delegate is a Behavior
Invoke the "dispose" method on the component.
- Specified by:
dispose
in interface Behavior
- Overrides:
dispose
in class AbstractBehavior
- Parameters:
node
- the container to "dispose" the component
componentHasLifecycle
public boolean componentHasLifecycle()
- Description copied from class:
AbstractBehavior
- Invokes delegate hasLifecycle method if the delegate is a Behavior
Test if a component honors a lifecycle.
- Specified by:
componentHasLifecycle
in interface Behavior
- Overrides:
componentHasLifecycle
in class AbstractBehavior
- Returns:
true
if the component has a lifecycle
getDescriptor
public String getDescriptor()
- Description copied from interface:
ComponentAdapter
- Get a string key descriptor of the component adapter.
- Specified by:
getDescriptor
in interface ComponentAdapter
- Returns:
Copyright © 2003-2010 Codehaus. All Rights Reserved.