类 StandardMethodInvocation
java.lang.Object
cn.taketoday.core.AttributeAccessorSupport
cn.taketoday.aop.framework.AbstractMethodInvocation
cn.taketoday.aop.framework.StandardMethodInvocation
- 所有已实现的接口:
ProxyMethodInvocation,TargetClassAware,AttributeAccessor,Serializable,Cloneable,Invocation,Joinpoint,MethodInvocation
- 直接已知子类:
DynamicStandardMethodInvocation
@Experimental
public class StandardMethodInvocation
extends AbstractMethodInvocation
implements MethodInvocation
- 作者:
- TODAY 2018-11-10 13:14
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected Object[]protected final Objectprotected inta flag show that current index of adviceprotected final TargetInvocation从类继承的字段 cn.taketoday.core.AttributeAccessorSupport
attributes -
构造器概要
构造器构造器说明StandardMethodInvocation(Object proxy, Object bean, TargetInvocation target, Object[] arguments) -
方法概要
修饰符和类型方法说明booleanprotected ObjectInvoke currentMethodInterceptorObject[]Get the arguments as an array object.Gets the method being called.getProxy()Return the proxy that this method invocation was made through.Returns the static part of this joinpoint.Class<?>Return the target class behind the implementing object (typically a proxy configuration or an actual proxy).getThis()Returns the object that holds the current joinpoint's static part.inthashCode()protected booleanDetermine whether there is an interceptorprotected ObjectInvoke jon-pointvoidsetArguments(Object[] arguments) Set the arguments to be used on subsequent invocations in the any advice in this chain.toString()从类继承的方法 cn.taketoday.aop.framework.AbstractMethodInvocation
invocableClone, invocableClone, proceed从类继承的方法 cn.taketoday.core.AttributeAccessorSupport
attributeNames, clearAttributes, computeAttribute, copyAttributesFrom, createAttributes, getAttribute, getAttributeNames, getAttributes, hasAttribute, hasAttributes, removeAttribute, setAttribute从接口继承的方法 cn.taketoday.aop.ProxyMethodInvocation
getAttribute, setAttribute
-
字段详细资料
-
args
-
bean
-
target
-
currentAdviceIndex
protected int currentAdviceIndexa flag show that current index of advice
-
-
构造器详细资料
-
StandardMethodInvocation
public StandardMethodInvocation(Object proxy, Object bean, TargetInvocation target, Object[] arguments)
-
-
方法详细资料
-
getMethod
从接口复制的说明:MethodInvocationGets the method being called.This method is a friendly implementation of the
Joinpoint.getStaticPart()method (same result).- 指定者:
getMethod在接口中MethodInvocation- 返回:
- the method being called.
-
getArguments
从接口复制的说明:InvocationGet the arguments as an array object. It is possible to change element values within this array to change the arguments.- 指定者:
getArguments在接口中Invocation- 返回:
- the argument of the invocation
-
setArguments
从接口复制的说明:ProxyMethodInvocationSet the arguments to be used on subsequent invocations in the any advice in this chain.- 指定者:
setArguments在接口中ProxyMethodInvocation- 指定者:
setArguments在类中AbstractMethodInvocation- 参数:
arguments- the argument array
-
getTargetClass
从接口复制的说明:TargetClassAwareReturn the target class behind the implementing object (typically a proxy configuration or an actual proxy).- 指定者:
getTargetClass在接口中TargetClassAware- 返回:
- the target Class, or
nullif not known
-
getProxy
从类复制的说明:AbstractMethodInvocationReturn the proxy that this method invocation was made through.- 指定者:
getProxy在接口中ProxyMethodInvocation- 指定者:
getProxy在类中AbstractMethodInvocation- 返回:
- the original proxy object
-
invokeJoinPoint
从类复制的说明:AbstractMethodInvocationInvoke jon-point- 指定者:
invokeJoinPoint在类中AbstractMethodInvocation- 返回:
- the result of the call to
Joinpoint.proceed(), might be intercepted by the interceptor.
-
hasInterceptor
protected boolean hasInterceptor()从类复制的说明:AbstractMethodInvocationDetermine whether there is an interceptor- 指定者:
hasInterceptor在类中AbstractMethodInvocation
-
executeInterceptor
从类复制的说明:AbstractMethodInvocationInvoke currentMethodInterceptorAbstractMethodInvocation.hasInterceptor()must returnstrue- 指定者:
executeInterceptor在类中AbstractMethodInvocation- 抛出:
Throwable- if the interceptors or the target-object throws an exception.- 另请参阅:
-
getThis
从接口复制的说明:JoinpointReturns the object that holds the current joinpoint's static part.For instance, the target object for an invocation.
-
getStaticPart
从接口复制的说明:JoinpointReturns the static part of this joinpoint.The static part is an accessible object on which a chain of interceptors are installed.
- 指定者:
getStaticPart在接口中Joinpoint
-
toString
-
equals
- 覆盖:
equals在类中AttributeAccessorSupport
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中AttributeAccessorSupport
-