org.picocontainer
Interface LifecycleManager

All Known Implementing Classes:
BeanPropertyComponentAdapter, CachingComponentAdapter, DecoratingComponentAdapter, DefaultPicoContainer.OrderedComponentAdapterLifecycleManager, ImplementationHidingComponentAdapter, ImplementationHidingComponentAdapter, InstanceComponentAdapter, SynchronizedComponentAdapter

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 lifecycle strategy.

Since:
1.2
Version:
$Revision: 2631 $
Author:
Paul Hammant, Jörg Schaible, Mauro Talevi
See Also:
LifecycleStrategy

Method Summary
 void dispose(PicoContainer container)
          Invoke the "dispose" method on the container's components.
 boolean hasLifecycle()
          Test if a container's component has a lifecycle.
 void start(PicoContainer container)
          Invoke the "start" method on the container's components.
 void stop(PicoContainer container)
          Invoke the "stop" method on the container's components.
 

Method Detail

start

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

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

stop

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

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

dispose

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

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

hasLifecycle

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

Returns:
true if the component has a lifecycle