private class DefaultPicoContainer.OrderedComponentAdapterLifecycleManager extends java.lang.Object implements LifecycleManager, java.io.Serializable
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.
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
startedComponentAdapters
List collecting the CAs which have been successfully started
|
| Modifier | Constructor and Description |
|---|---|
private |
DefaultPicoContainer.OrderedComponentAdapterLifecycleManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(PicoContainer node)
Invoke the "dispose" method on the container's components.
|
boolean |
hasLifecycle()
Test if a container's component has a lifecycle.
|
void |
start(PicoContainer node)
Invoke the "start" method on the container's components.
|
void |
stop(PicoContainer node)
Invoke the "stop" method on the container's components.
|
private java.util.List startedComponentAdapters
private DefaultPicoContainer.OrderedComponentAdapterLifecycleManager()
public void start(PicoContainer node)
start in interface LifecycleManagernode - the container to "start" its components' lifecyclepublic void stop(PicoContainer node)
stop in interface LifecycleManagernode - the container to "stop" its components' lifecyclepublic void dispose(PicoContainer node)
dispose in interface LifecycleManagernode - the container to "dispose" its components' lifecyclepublic boolean hasLifecycle()
LifecycleManagerhasLifecycle in interface LifecycleManagertrue if the component has a lifecycle