|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.alternatives.RootVisitingLifecycleManager
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 |
public RootVisitingLifecycleManager(ComponentMonitor componentMonitor)
componentMonitor
- the monitor that will receive lifecycle events.public RootVisitingLifecycleManager(PicoVisitor startVisitor, PicoVisitor stopVisitor, PicoVisitor disposeVisitor)
startVisitor
- the visitor to use on start()stopVisitor
- the visitor to use on stop()disposeVisitor
- the visitor to use on dispose()public RootVisitingLifecycleManager()
NullComponentMonitor
.
Method Detail |
public void start(PicoContainer node)
LifecycleManager
start
in interface LifecycleManager
node
- The node to start the traversal.public void stop(PicoContainer node)
LifecycleManager
stop
in interface LifecycleManager
node
- The node to start the traversal.public void dispose(PicoContainer node)
LifecycleManager
dispose
in interface LifecycleManager
node
- The node to start the traversal.
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |