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。
|
public static ActionAnnotationHelper parse(Class<?> cls, Method method) throws NoSuchMethodException, SecurityException
method - SecurityExceptionNoSuchMethodExceptionpublic Object createObject(ActionContext actionContext) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException, NoSuchMethodException, SecurityException
actionContext - InvocationTargetExceptionIllegalArgumentExceptionIllegalAccessExceptionInstantiationExceptionSecurityExceptionNoSuchMethodExceptionpublic Object[] getParamValues(ActionContext actionContext)
public Object invoke(Object object, ActionContext actionContext)
public Method getActionMethod()
Copyright © 2022 xworker.org. All rights reserved.