org.picocontainer.defaults
Class DefaultLifecycleManager
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startMethod
protected static Method startMethod
stopMethod
protected static Method stopMethod
disposeMethod
protected static Method disposeMethod
DefaultLifecycleManager
public DefaultLifecycleManager(ComponentMonitor componentMonitor)
DefaultLifecycleManager
public DefaultLifecycleManager()
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.