public class

MethodInvocationProceedingJoinPoint

extends Object
java.lang.Object
   ↳ org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint

Class Overview

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.

Summary

Public Constructors
MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.
Public Methods
Object[] getArgs()
int getId()
String getKind()
Signature getSignature()
SourceLocation getSourceLocation()
JoinPoint.StaticPart getStaticPart()
Object getTarget()
Returns the Spring AOP target.
Object getThis()
Returns the Spring AOP proxy.
Object proceed(Object[] arguments)
Object proceed()
void set$AroundClosure(AroundClosure aroundClosure)
String toLongString()
String toShortString()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MethodInvocationProceedingJoinPoint (ProxyMethodInvocation methodInvocation)

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

Parameters
methodInvocation the Spring ProxyMethodInvocation object

Public Methods

public Object[] getArgs ()

public int getId ()

public String getKind ()

public Signature getSignature ()

public SourceLocation getSourceLocation ()

public JoinPoint.StaticPart getStaticPart ()

public Object getTarget ()

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

public Object getThis ()

Returns the Spring AOP proxy. Cannot be null.

public Object proceed (Object[] arguments)

Throws
Throwable

public Object proceed ()

Throws
Throwable

public void set$AroundClosure (AroundClosure aroundClosure)

public String toLongString ()

public String toShortString ()

public String toString ()