org.picocontainer

Interface LifecycleManager

public interface LifecycleManager

A manager for the lifecycle of a container's components. The lifecycle manager is implemented by the component adapters which will resolve the dependencies of the component instance and delegate the implementation of the lifecycle control to the org.picocontainer.defaults.LifecycleStrategy lifecycle strategy.

Since: 1.2

See Also: org.picocontainer.defaults.LifecycleStrategy

Method Summary
voiddispose(PicoContainer container)
Invoke the "dispose" method on the container's components.
booleanhasLifecycle()
Test if a container's component has a lifecycle.
voidstart(PicoContainer container)
Invoke the "start" method on the container's components.
voidstop(PicoContainer container)
Invoke the "stop" method on the container's components.

Method Detail

dispose

public void dispose(PicoContainer container)
Invoke the "dispose" method on the container's components.

Parameters: container the container to "dispose" its components' lifecycle

hasLifecycle

public boolean hasLifecycle()
Test if a container's component has a lifecycle.

Returns: true if the component has a lifecycle

start

public void start(PicoContainer container)
Invoke the "start" method on the container's components.

Parameters: container the container to "start" its components' lifecycle

stop

public void stop(PicoContainer container)
Invoke the "stop" method on the container's components.

Parameters: container the container to "stop" its components' lifecycle