org.oddjob.arooa
Class Lifecycle

java.lang.Object
  extended byorg.oddjob.arooa.Lifecycle

public class Lifecycle
extends java.lang.Object

Various utility methods used in the lifecycle of a component.

Author:
Rob Gordon.

Constructor Summary
Lifecycle()
           
 
Method Summary
static void destroy(java.lang.Object object)
          If an object has a destroy method then call it.
static void destroy(java.lang.Object[] objects)
          Destroy an array of objects.
static void init(java.lang.Object object)
          If an object has an init method then invoke it.
static boolean setContext(java.lang.Object object, ArooaContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lifecycle

public Lifecycle()
Method Detail

setContext

public static boolean setContext(java.lang.Object object,
                                 ArooaContext context)

init

public static void init(java.lang.Object object)
If an object has an init method then invoke it.

Parameters:
object - The object.

destroy

public static void destroy(java.lang.Object[] objects)
Destroy an array of objects.

Parameters:
objects - The objects

destroy

public static void destroy(java.lang.Object object)
If an object has a destroy method then call it.

Parameters:
object - The object.