类 MethodInvocationProceedingJoinPoint
- java.lang.Object
- org.springframework.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 AspectJProceedingJoinPointinterface wrapping an AOP AllianceMethodInvocation.Note: The
getThis()method returns the current Spring AOP proxy. ThegetTarget()method returns the current Spring AOP target (which may benullif 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, usegetThis(). 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.- 从以下版本开始:
- 2.0
- 作者:
- Rod Johnson, Juergen Hoeller, Adrian Colyer, Ramnivas Laddad
构造器概要
构造器 构造器 说明 MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object[]getArgs()intgetId()StringgetKind()org.aspectj.lang.SignaturegetSignature()SourceLocationgetSourceLocation()org.aspectj.lang.JoinPoint.StaticPartgetStaticPart()ObjectgetTarget()Returns the Spring AOP target.ObjectgetThis()Returns the Spring AOP proxy.Objectproceed()Objectproceed(Object[] arguments)voidset$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure)StringtoLongString()StringtoShortString()StringtoString()
构造器详细资料
MethodInvocationProceedingJoinPoint
public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.- 参数:
methodInvocation- the Spring ProxyMethodInvocation object
方法详细资料
set$AroundClosure
public void set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure)
- 指定者:
set$AroundClosure在接口中org.aspectj.lang.ProceedingJoinPoint
proceed
public Object proceed() throws Throwable
- 指定者:
proceed在接口中org.aspectj.lang.ProceedingJoinPoint- 抛出:
Throwable
proceed
public Object proceed(Object[] arguments) throws Throwable
- 指定者:
proceed在接口中org.aspectj.lang.ProceedingJoinPoint- 抛出:
Throwable
getThis
public Object getThis()
Returns the Spring AOP proxy. Cannot benull.- 指定者:
getThis在接口中org.aspectj.lang.JoinPoint
getTarget
public Object getTarget()
Returns the Spring AOP target. May benullif there is no target.- 指定者:
getTarget在接口中org.aspectj.lang.JoinPoint
getSignature
public org.aspectj.lang.Signature getSignature()
- 指定者:
getSignature在接口中org.aspectj.lang.JoinPoint- 指定者:
getSignature在接口中org.aspectj.lang.JoinPoint.StaticPart
getSourceLocation
public SourceLocation getSourceLocation()
- 指定者:
getSourceLocation在接口中org.aspectj.lang.JoinPoint- 指定者:
getSourceLocation在接口中org.aspectj.lang.JoinPoint.StaticPart
getKind
public String 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
public String toShortString()
- 指定者:
toShortString在接口中org.aspectj.lang.JoinPoint- 指定者:
toShortString在接口中org.aspectj.lang.JoinPoint.StaticPart
toLongString
public String toLongString()
- 指定者:
toLongString在接口中org.aspectj.lang.JoinPoint- 指定者:
toLongString在接口中org.aspectj.lang.JoinPoint.StaticPart