类 ActionAnnotationHelper
java.lang.Object
org.xmeta.annotation.ActionAnnotationHelper
public class ActionAnnotationHelper extends Object
-
构造器概要
构造器 构造器 说明 ActionAnnotationHelper()
-
方法概要
修饰符和类型 方法 说明 Object
createObject(ActionContext actionContext)
创建动作的java方法所属于的类的实例化对象。Method
getActionMethod()
Object[]
getParamValues(ActionContext actionContext)
Object
invoke(Object object, ActionContext actionContext)
static ActionAnnotationHelper
parse(Class<?> cls, Method method)
分析方法和方法所述的类有没有定义动作相关的注解,如果有那么返回Helper,如果没有那么返回null。
-
构造器详细资料
-
ActionAnnotationHelper
public ActionAnnotationHelper()
-
-
方法详细资料
-
parse
public static ActionAnnotationHelper parse(Class<?> cls, Method method) throws NoSuchMethodException, SecurityException分析方法和方法所述的类有没有定义动作相关的注解,如果有那么返回Helper,如果没有那么返回null。- 参数:
method
-- 返回:
- 抛出:
SecurityException
NoSuchMethodException
-
createObject
public Object createObject(ActionContext actionContext) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException, NoSuchMethodException, SecurityException创建动作的java方法所属于的类的实例化对象。如果- 参数:
actionContext
-- 返回:
- 抛出:
InvocationTargetException
IllegalArgumentException
IllegalAccessException
InstantiationException
SecurityException
NoSuchMethodException
-
getParamValues
-
invoke
-
getActionMethod
-