类 DefaultMethodInvocation
java.lang.Object
infra.core.AttributeAccessorSupport
infra.aop.framework.AbstractMethodInvocation
infra.aop.framework.DefaultMethodInvocation
- 所有已实现的接口:
ProxyMethodInvocation,TargetClassAware,infra.core.AttributeAccessor,Cloneable,Invocation,Joinpoint,MethodInvocation
- 从以下版本开始:
- 2018-11-10 13:14
- 作者:
- Harry Yang
-
字段概要
字段修饰符和类型字段说明private final intprotected final MethodInterceptor[]protected Object[]private inta flag show that current index of adviceprotected final Methodprivate final Objectprotected final Objectprotected final Class<?>从类继承的字段 infra.core.AttributeAccessorSupport
attributes -
构造器概要
构造器构造器说明DefaultMethodInvocation(Object proxy, Object target, Method method, Class<?> targetClass, Object[] arguments, MethodInterceptor[] advices) DefaultMethodInvocation(Object proxy, Method method, Class<?> targetClass, 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()从类继承的方法 infra.aop.framework.AbstractMethodInvocation
invocableClone, invocableClone, proceed从类继承的方法 infra.core.AttributeAccessorSupport
attributeNames, clearAttributes, computeAttribute, copyFrom, createAttributes, getAttribute, getAttributeNames, getAttributes, hasAttribute, hasAttributes, removeAttribute, setAttribute, setAttributes从接口继承的方法 infra.aop.ProxyMethodInvocation
getAttribute, setAttribute
-
字段详细资料
-
proxy
-
args
-
target
-
method
-
targetClass
-
advices
-
currentAdviceIndex
private int currentAdviceIndexa flag show that current index of advice -
adviceLength
private final int adviceLength
-
-
构造器详细资料
-
DefaultMethodInvocation
-
DefaultMethodInvocation
-
-
方法详细资料
-
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
-
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. - 抛出:
Throwable
-
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.
-
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
-
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
-
equals
- 覆盖:
equals在类中infra.core.AttributeAccessorSupport
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中infra.core.AttributeAccessorSupport
-
toString
-