spring-framework / org.springframework.aop.aspectj / MethodInvocationProceedingJoinPoint

MethodInvocationProceedingJoinPoint

open class MethodInvocationProceedingJoinPoint : ProceedingJoinPoint, StaticPart

Implementation of AspectJ ProceedingJoinPoint interface wrapping an AOP Alliance MethodInvocation.

Note: the getThis() method returns the current Spring AOP proxy. The getTarget() method returns the current Spring AOP target (which may be null if there is no target), and is 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.

Of course there is no such distinction between target and proxy in AspectJ.

Author
Rod Johnson

Author
Juergen Hoeller

Author
Adrian Colyer

Author
Ramnivas Laddad

Since
2.0

Constructors

<init>

MethodInvocationProceedingJoinPoint(methodInvocation: ProxyMethodInvocation)

Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.

Functions

getArgs

open fun getArgs(): Array<Any>

getId

open fun getId(): Int

getKind

open fun getKind(): String

getSignature

open fun getSignature(): Signature

getSourceLocation

open fun getSourceLocation(): SourceLocation

getStaticPart

open fun getStaticPart(): StaticPart

getTarget

open fun getTarget(): Any

Returns the Spring AOP target. May be null if there is no target.

getThis

open fun getThis(): Any

Returns the Spring AOP proxy. Cannot be null.

proceed

open fun proceed(): Any
open fun proceed(arguments: Array<Any>): Any

set$AroundClosure

open fun set$AroundClosure(aroundClosure: AroundClosure): Unit

toLongString

open fun toLongString(): String

toShortString

open fun toShortString(): String

toString

open fun toString(): String