类 MethodInvocationProceedingJoinPoint
java.lang.Object
infra.aop.aspectj.MethodInvocationProceedingJoinPoint
- 所有已实现的接口:
org.aspectj.lang.JoinPoint,org.aspectj.lang.JoinPoint.StaticPart,org.aspectj.lang.ProceedingJoinPoint
public class MethodInvocationProceedingJoinPoint
extends Object
implements org.aspectj.lang.ProceedingJoinPoint, org.aspectj.lang.JoinPoint.StaticPart
An implementation of the AspectJ
ProceedingJoinPoint interface
wrapping an AOP Alliance MethodInvocation.
Note: The getThis() method returns the current Framework AOP proxy.
The getTarget() method returns the current Framework AOP target (which may be
null if there is no target instance) as a plain POJO without any advice.
If you want to call the object and have the advice take effect, use getThis().
A common example is casting the object to an introduced interface in the implementation of
an introduction. There is no such distinction between target and proxy in AspectJ itself.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller, Adrian Colyer, Ramnivas Laddad, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明private classLazily initialized MethodSignature.private classLazily initialized SourceLocation.从接口继承的嵌套类/接口 org.aspectj.lang.JoinPoint
org.aspectj.lang.JoinPoint.EnclosingStaticPart, org.aspectj.lang.JoinPoint.StaticPart -
字段概要
字段修饰符和类型字段说明private Object[]private final ProxyMethodInvocationprivate static final infra.core.ParameterNameDiscovererprivate org.aspectj.lang.SignatureLazily initialized signature object.private SourceLocationLazily initialized source location object.从接口继承的字段 org.aspectj.lang.JoinPoint
ADVICE_EXECUTION, CONSTRUCTOR_CALL, CONSTRUCTOR_EXECUTION, EXCEPTION_HANDLER, FIELD_GET, FIELD_SET, INITIALIZATION, METHOD_CALL, METHOD_EXECUTION, PREINITIALIZATION, STATICINITIALIZATION, SYNCHRONIZATION_LOCK, SYNCHRONIZATION_UNLOCK -
构造器概要
构造器构造器说明MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation) Create a new MethodInvocationProceedingJoinPoint, wrapping the given Framework ProxyMethodInvocation object. -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.aspectj.lang.ProceedingJoinPoint
stack$AroundClosure
-
字段详细资料
-
parameterNameDiscoverer
private static final infra.core.ParameterNameDiscoverer parameterNameDiscoverer -
methodInvocation
-
args
-
signature
@Nullable private org.aspectj.lang.Signature signatureLazily initialized signature object. -
sourceLocation
Lazily initialized source location object.
-
-
构造器详细资料
-
MethodInvocationProceedingJoinPoint
Create a new MethodInvocationProceedingJoinPoint, wrapping the given Framework ProxyMethodInvocation object.- 参数:
methodInvocation- the Framework ProxyMethodInvocation object
-
-
方法详细资料
-
set$AroundClosure
public void set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure) - 指定者:
set$AroundClosure在接口中org.aspectj.lang.ProceedingJoinPoint
-
proceed
- 指定者:
proceed在接口中org.aspectj.lang.ProceedingJoinPoint- 抛出:
Throwable
-
proceed
- 指定者:
proceed在接口中org.aspectj.lang.ProceedingJoinPoint- 抛出:
Throwable
-
getThis
Returns the Framework AOP proxy. Cannot benull.- 指定者:
getThis在接口中org.aspectj.lang.JoinPoint
-
getTarget
Returns the Framework AOP target. May benullif there is no target.- 指定者:
getTarget在接口中org.aspectj.lang.JoinPoint
-
getArgs
- 指定者:
getArgs在接口中org.aspectj.lang.JoinPoint
-
getSignature
public org.aspectj.lang.Signature getSignature()- 指定者:
getSignature在接口中org.aspectj.lang.JoinPoint- 指定者:
getSignature在接口中org.aspectj.lang.JoinPoint.StaticPart
-
getSourceLocation
- 指定者:
getSourceLocation在接口中org.aspectj.lang.JoinPoint- 指定者:
getSourceLocation在接口中org.aspectj.lang.JoinPoint.StaticPart
-
getKind
- 指定者:
getKind在接口中org.aspectj.lang.JoinPoint- 指定者:
getKind在接口中org.aspectj.lang.JoinPoint.StaticPart
-
getId
public int getId()- 指定者:
getId在接口中org.aspectj.lang.JoinPoint.StaticPart
-
getStaticPart
public org.aspectj.lang.JoinPoint.StaticPart getStaticPart()- 指定者:
getStaticPart在接口中org.aspectj.lang.JoinPoint
-
toShortString
- 指定者:
toShortString在接口中org.aspectj.lang.JoinPoint- 指定者:
toShortString在接口中org.aspectj.lang.JoinPoint.StaticPart
-
toLongString
- 指定者:
toLongString在接口中org.aspectj.lang.JoinPoint- 指定者:
toLongString在接口中org.aspectj.lang.JoinPoint.StaticPart
-
toString
-