jfun.yan.lifecycle
Class Procedures

java.lang.Object
  extended by jfun.yan.lifecycle.Procedures

public class Procedures
extends java.lang.Object

Facade class providing some useful Procedure implementations.

Zephyr Business Solution

Author:
Michelle Lei

Constructor Summary
Procedures()
           
 
Method Summary
static Procedure method(java.lang.reflect.Method mtd)
          Creates a procedure that encapsulates a method.
static Procedure method(java.lang.String name)
          Creates a procedure that invokes a parameter-less method of a certain name.
static Procedure method(java.lang.String name, java.lang.Class[] param_types)
          Creates a procedure that invokes a method of a certain signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Procedures

public Procedures()
Method Detail

method

public static Procedure method(java.lang.String name,
                               java.lang.Class[] param_types)
Creates a procedure that invokes a method of a certain signature.

Parameters:
name - the method name.
param_types - the parameter types.
Returns:
the Procedure object.

method

public static Procedure method(java.lang.String name)
Creates a procedure that invokes a parameter-less method of a certain name.

Parameters:
name - the method name.
Returns:
the Procedure object.

method

public static Procedure method(java.lang.reflect.Method mtd)
Creates a procedure that encapsulates a method.

Parameters:
mtd - the method object.
Returns:
the Procedure object.