org.picocontainer.defaults
Class LifecycleVisitor

java.lang.Object
  extended by org.picocontainer.defaults.AbstractPicoVisitor
      extended by org.picocontainer.defaults.TraversalCheckingVisitor
          extended by org.picocontainer.defaults.MethodCallingVisitor
              extended by org.picocontainer.defaults.LifecycleVisitor
All Implemented Interfaces:
Serializable, PicoVisitor

Deprecated. since 1.2 in favour of LifecycleManager

public class LifecycleVisitor
extends MethodCallingVisitor

A PicoVisitor for the lifecycle methods of the components.

Since:
1.1
Author:
Aslak Hellesøy, Jörg Schaible
See Also:
Serialized Form

Constructor Summary
  LifecycleVisitor(Method method, Class ofType, boolean visitInInstantiationOrder)
          Deprecated. since 1.2 in favour of LifecycleManager
protected LifecycleVisitor(Method method, Class ofType, boolean visitInInstantiationOrder, ComponentMonitor monitor)
          Deprecated. since 1.2 in favour of LifecycleManager
 
Method Summary
static void dispose(Object node)
          Deprecated. since 1.2 in favour of LifecycleManager
protected  Object invoke(Object target)
          Deprecated.  
static void start(Object node)
          Deprecated. since 1.2 in favour of LifecycleManager
static void stop(Object node)
          Deprecated. since 1.2 in favour of LifecycleManager
 
Methods inherited from class org.picocontainer.defaults.MethodCallingVisitor
getArguments, getMethod, invoke, traverse, visitContainer
 
Methods inherited from class org.picocontainer.defaults.TraversalCheckingVisitor
visitComponentAdapter, visitParameter
 
Methods inherited from class org.picocontainer.defaults.AbstractPicoVisitor
checkTraversal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleVisitor

protected LifecycleVisitor(Method method,
                           Class ofType,
                           boolean visitInInstantiationOrder,
                           ComponentMonitor monitor)
Deprecated. since 1.2 in favour of LifecycleManager

Construct a LifecycleVisitor.

Parameters:
method - the method to call
ofType - the component type
visitInInstantiationOrder - flag for the visiting order
monitor - the ComponentMonitor to use

LifecycleVisitor

public LifecycleVisitor(Method method,
                        Class ofType,
                        boolean visitInInstantiationOrder)
Deprecated. since 1.2 in favour of LifecycleManager

Construct a LifecycleVisitor.

Parameters:
method - the method to call
ofType - the component type
visitInInstantiationOrder - flag for the visiting order
Method Detail

start

public static void start(Object node)
Deprecated. since 1.2 in favour of LifecycleManager

Invoke the standard PicoContainer lifecycle for Startable.start().

Parameters:
node - The node to start the traversal.

stop

public static void stop(Object node)
Deprecated. since 1.2 in favour of LifecycleManager

Invoke the standard PicoContainer lifecycle for Startable.stop().

Parameters:
node - The node to start the traversal.

dispose

public static void dispose(Object node)
Deprecated. since 1.2 in favour of LifecycleManager

Invoke the standard PicoContainer lifecycle for Disposable.dispose().

Parameters:
node - The node to start the traversal.

invoke

protected Object invoke(Object target)
Deprecated. 
Overrides:
invoke in class MethodCallingVisitor


Copyright © 2003-2010 Codehaus. All Rights Reserved.