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:
java.io.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

Field Summary
private  ComponentMonitor componentMonitor
          Deprecated.  
private static java.lang.reflect.Method DISPOSE
          Deprecated.  
private static java.lang.reflect.Method START
          Deprecated.  
private static java.lang.reflect.Method STOP
          Deprecated.  
 
Constructor Summary
  LifecycleVisitor(java.lang.reflect.Method method, java.lang.Class ofType, boolean visitInInstantiationOrder)
          Deprecated. since 1.2 in favour of LifecycleManager
protected LifecycleVisitor(java.lang.reflect.Method method, java.lang.Class ofType, boolean visitInInstantiationOrder, ComponentMonitor monitor)
          Deprecated. since 1.2 in favour of LifecycleManager
 
Method Summary
static void dispose(java.lang.Object node)
          Deprecated. since 1.2 in favour of LifecycleManager
protected  java.lang.Object invoke(java.lang.Object target)
          Deprecated.  
static void start(java.lang.Object node)
          Deprecated. since 1.2 in favour of LifecycleManager
static void stop(java.lang.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
 

Field Detail

START

private static final java.lang.reflect.Method START
Deprecated. 

STOP

private static final java.lang.reflect.Method STOP
Deprecated. 

DISPOSE

private static final java.lang.reflect.Method DISPOSE
Deprecated. 

componentMonitor

private final ComponentMonitor componentMonitor
Deprecated. 
Constructor Detail

LifecycleVisitor

protected LifecycleVisitor(java.lang.reflect.Method method,
                           java.lang.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(java.lang.reflect.Method method,
                        java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.Object invoke(java.lang.Object target)
Deprecated. 
Overrides:
invoke in class MethodCallingVisitor