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, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, verify
isStarted
public final ArrayList<PicoContainer> started
public TestBehavior(ComponentAdapter delegate)
public void start(PicoContainer node)
AbstractBehavior
start
in interface ComponentLifecycle
start
in class AbstractBehavior
node
- the container to "start" the componentpublic void stop(PicoContainer node)
AbstractBehavior
stop
in interface ComponentLifecycle
stop
in class AbstractBehavior
node
- the container to "stop" the componentpublic void dispose(PicoContainer node)
AbstractBehavior
dispose
in interface ComponentLifecycle
dispose
in class AbstractBehavior
node
- the container to "dispose" the componentpublic boolean componentHasLifecycle()
AbstractBehavior
componentHasLifecycle
in interface ComponentLifecycle
componentHasLifecycle
in class AbstractBehavior
true
if the component has a lifecyclepublic String getDescriptor()
ComponentAdapter
getDescriptor
in interface ComponentAdapter
Copyright © 2003–2016 Codehaus. All rights reserved.