org.picocontainer.defaults
Class DefaultLifecycleManager

java.lang.Object
  extended byorg.picocontainer.defaults.DefaultLifecycleManager
All Implemented Interfaces:
LifecycleManager, Serializable

public class DefaultLifecycleManager
extends Object
implements LifecycleManager, Serializable

This class implements the default lifecycle based on

It also allows custom lifecycle strategies to be plugged in via #DefaultLifecycleManager(org.picocontainer.PicoVisitor, org.picocontainer.PicoVisitor, org.picocontainer.PicoVisitor).

Version:
$Revision: 1870 $
Author:
Paul Hammant, Jörg Schaible, Aslak Hellesøy
See Also:
Serialized Form

Field Summary
protected static Method disposeMethod
           
protected static Method startMethod
           
protected static Method stopMethod
           
 
Constructor Summary
DefaultLifecycleManager()
           
DefaultLifecycleManager(ComponentMonitor componentMonitor)
           
 
Method Summary
 void dispose(PicoContainer node)
          Invoke the "dispose" method on the container's components and child components.
protected  void doMethod(Method method, Object instance)
           
protected  void invocationFailed(Method method, Object instance, Exception e)
           
 void start(PicoContainer node)
          Invoke the "start" method on the container's components and child components.
 void stop(PicoContainer node)
          Invoke the "stop" method on the container's components and child components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startMethod

protected static Method startMethod

stopMethod

protected static Method stopMethod

disposeMethod

protected static Method disposeMethod
Constructor Detail

DefaultLifecycleManager

public DefaultLifecycleManager(ComponentMonitor componentMonitor)

DefaultLifecycleManager

public DefaultLifecycleManager()
Method Detail

start

public void start(PicoContainer node)
Description copied from interface: LifecycleManager
Invoke the "start" method on the container's components and child components. It is up to the implementor to define exactly what a component's "start" method is.

Specified by:
start in interface LifecycleManager
Parameters:
node - The node to start the traversal.

stop

public void stop(PicoContainer node)
Description copied from interface: LifecycleManager
Invoke the "stop" method on the container's components and child components. It is up to the implementor to define exactly what a component's "stop" method is.

Specified by:
stop in interface LifecycleManager
Parameters:
node - The node to start the traversal.

dispose

public void dispose(PicoContainer node)
Description copied from interface: LifecycleManager
Invoke the "dispose" method on the container's components and child components. It is up to the implementor to define exactly what a component's "dispose" method is.

Specified by:
dispose in interface LifecycleManager
Parameters:
node - The node to start the traversal.

doMethod

protected void doMethod(Method method,
                        Object instance)

invocationFailed

protected void invocationFailed(Method method,
                                Object instance,
                                Exception e)


Copyright © 2003-2005 Codehaus. All Rights Reserved.