1 8 9 15 package jfun.yan.lifecycle; 16 17 import java.lang.reflect.Method ; 18 19 28 public class Procedures { 29 35 public static Procedure method(String name, Class [] param_types){ 36 return new MethodNameProcedure(name, param_types); 37 } 38 43 public static Procedure method(String name){ 44 return method(name, null); 45 } 46 51 public static Procedure method(Method mtd){ 52 return new MethodProcedure(mtd); 53 } 54 } 55 | Popular Tags |