public static final class AbstractPicoContainerTest.TestBehavior extends AbstractBehavior implements Behavior
ComponentAdapter.NOTHING| Modifier and Type | Field and Description |
|---|---|
ArrayList<PicoContainer> |
started |
delegate| Constructor and Description |
|---|
TestBehavior(ComponentAdapter delegate) |
| Modifier and Type | Method and Description |
|---|---|
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 for use in toString()
|
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.
|
accept, changeMonitor, currentMonitor, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, isStarted, start, stop, toString, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, verifyisStartedpublic final ArrayList<PicoContainer> started
public TestBehavior(ComponentAdapter delegate)
public void start(PicoContainer node)
AbstractBehaviorstart in interface ComponentLifecyclestart in class AbstractBehaviornode - the container to "start" the componentpublic void stop(PicoContainer node)
AbstractBehaviorstop in interface ComponentLifecyclestop in class AbstractBehaviornode - the container to "stop" the componentpublic void dispose(PicoContainer node)
AbstractBehaviordispose in interface ComponentLifecycledispose in class AbstractBehaviornode - the container to "dispose" the componentpublic boolean componentHasLifecycle()
AbstractBehaviorcomponentHasLifecycle in interface ComponentLifecyclecomponentHasLifecycle in class AbstractBehaviortrue if the component has a lifecyclepublic String getDescriptor()
ComponentAdaptergetDescriptor in interface ComponentAdapterCopyright © 2003–2016 Codehaus. All rights reserved.