public class JbootActionInvocation extends com.jfinal.aop.Invocation
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.jfinal.core.Action |
action |
protected Object[] |
args |
protected static InterceptorBuilderManager |
builderManager |
protected int |
index |
protected com.jfinal.aop.Interceptor[] |
inters |
protected Object |
returnValue |
protected Object |
target |
| 构造器和说明 |
|---|
JbootActionInvocation(com.jfinal.core.Action action,
com.jfinal.core.Controller controller) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.jfinal.aop.Interceptor[] |
buildInterceptors(com.jfinal.core.Action action) |
String |
getActionKey()
Return the action key.
|
Object |
getArg(int index) |
Object[] |
getArgs() |
com.jfinal.core.Controller |
getController()
Return the controller of this action.
|
String |
getControllerKey()
已过时。
|
String |
getControllerPath()
Return the controller path.
|
Method |
getMethod()
Return the method of this action.
|
String |
getMethodName()
Return the method name of this action's method.
|
<T> T |
getReturnValue()
Get the return value of the target method
|
<T> T |
getTarget() |
String |
getViewPath()
Return view path of this controller.
|
void |
invoke() |
boolean |
isActionInvocation()
return true if it is action invocation.
|
void |
setArg(int index,
Object value) |
void |
setReturnValue(Object returnValue) |
protected com.jfinal.core.Action action
protected com.jfinal.aop.Interceptor[] inters
protected int index
protected Object returnValue
protected static InterceptorBuilderManager builderManager
public JbootActionInvocation(com.jfinal.core.Action action, com.jfinal.core.Controller controller)
protected com.jfinal.aop.Interceptor[] buildInterceptors(com.jfinal.core.Action action)
public void invoke()
invoke 在类中 com.jfinal.aop.Invocationpublic <T> T getTarget()
getTarget 在类中 com.jfinal.aop.Invocationpublic Method getMethod()
You can getMethod.getAnnotations() to get annotation on action method to do more things
getMethod 在类中 com.jfinal.aop.Invocationpublic String getMethodName()
getMethodName 在类中 com.jfinal.aop.Invocationpublic <T> T getReturnValue()
getReturnValue 在类中 com.jfinal.aop.Invocationpublic void setReturnValue(Object returnValue)
setReturnValue 在类中 com.jfinal.aop.Invocationpublic com.jfinal.core.Controller getController()
getController 在类中 com.jfinal.aop.Invocationpublic String getActionKey()
getActionKey 在类中 com.jfinal.aop.Invocationpublic String getControllerPath()
getControllerPath 在类中 com.jfinal.aop.Invocation@Deprecated public String getControllerKey()
getControllerKey 在类中 com.jfinal.aop.Invocationpublic String getViewPath()
getViewPath 在类中 com.jfinal.aop.Invocationpublic boolean isActionInvocation()
isActionInvocation 在类中 com.jfinal.aop.InvocationCopyright © 2024. All rights reserved.