|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.defaults.DefaultPicoContainer.OrderedComponentAdapterLifecycleManager
private class DefaultPicoContainer.OrderedComponentAdapterLifecycleManager
Implementation of lifecycle manager which delegates to the container's component adapters. The component adapters will be ordered by dependency as registered in the container. This LifecycleManager will delegate calls on the lifecycle methods to the component adapters if these are themselves LifecycleManagers.
Field Summary | |
---|---|
private java.util.List |
startedComponentAdapters
List collecting the CAs which have been successfully started |
Constructor Summary | |
---|---|
private |
DefaultPicoContainer.OrderedComponentAdapterLifecycleManager()
|
Method Summary | |
---|---|
void |
dispose(PicoContainer node)
Invoke the "dispose" method on the container's components. Loops over all component adapters (in inverse order) and invokes dispose(PicoContainer) method on the ones which are LifecycleManagers |
boolean |
hasLifecycle()
Test if a container's component has a lifecycle. |
void |
start(PicoContainer node)
Invoke the "start" method on the container's components. Loops over all component adapters and invokes start(PicoContainer) method on the ones which are LifecycleManagers |
void |
stop(PicoContainer node)
Invoke the "stop" method on the container's components. Loops over started component adapters (in inverse order) and invokes stop(PicoContainer) method on the ones which are LifecycleManagers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List startedComponentAdapters
Constructor Detail |
---|
private DefaultPicoContainer.OrderedComponentAdapterLifecycleManager()
Method Detail |
---|
public void start(PicoContainer node)
start
in interface LifecycleManager
node
- the container to "start" its components' lifecyclepublic void stop(PicoContainer node)
stop
in interface LifecycleManager
node
- the container to "stop" its components' lifecyclepublic void dispose(PicoContainer node)
dispose
in interface LifecycleManager
node
- the container to "dispose" its components' lifecyclepublic boolean hasLifecycle()
LifecycleManager
hasLifecycle
in interface LifecycleManager
true
if the component has a lifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |