public class ActionAnnotationHelper extends Object
| 构造器 | 说明 |
|---|---|
ActionAnnotationHelper() |
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
Object |
createObject(ActionContext actionContext) |
创建动作的java方法所属于的类的实例化对象。
|
Object[] |
getParamValues(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)
Copyright © 2021 xworker.org. All rights reserved.