org.picocontainer.alternatives
Class RootVisitingLifecycleManager

java.lang.Object
  extended byorg.picocontainer.alternatives.RootVisitingLifecycleManager
All Implemented Interfaces:
LifecycleManager

public class RootVisitingLifecycleManager
extends Object
implements LifecycleManager

Version:
$Revision: 1870 $
Author:
Paul Hammant

Constructor Summary
RootVisitingLifecycleManager()
          Creates a lifecycle manager with default visitors using a NullComponentMonitor.
RootVisitingLifecycleManager(ComponentMonitor componentMonitor)
          Creates a lifecycle manager which will invoke lifecycle methods on components implementing: Startable.start() Startable.stop() Disposable.dispose()
RootVisitingLifecycleManager(PicoVisitor startVisitor, PicoVisitor stopVisitor, PicoVisitor disposeVisitor)
          Creates a lifecycle manager using pluggable lifecycle.
 
Method Summary
 void dispose(PicoContainer node)
          Invoke the "dispose" method on the container's components and child components.
 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
 

Constructor Detail

RootVisitingLifecycleManager

public RootVisitingLifecycleManager(ComponentMonitor componentMonitor)
Creates a lifecycle manager which will invoke lifecycle methods on components implementing:

Parameters:
componentMonitor - the monitor that will receive lifecycle events.

RootVisitingLifecycleManager

public RootVisitingLifecycleManager(PicoVisitor startVisitor,
                                    PicoVisitor stopVisitor,
                                    PicoVisitor disposeVisitor)
Creates a lifecycle manager using pluggable lifecycle.

Parameters:
startVisitor - the visitor to use on start()
stopVisitor - the visitor to use on stop()
disposeVisitor - the visitor to use on dispose()

RootVisitingLifecycleManager

public RootVisitingLifecycleManager()
Creates a lifecycle manager with default visitors using a NullComponentMonitor.

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.


Copyright © 2003-2005 Codehaus. All Rights Reserved.