public class MethodInvocationProceedingJoinPoint extends Object implements org.aspectj.lang.ProceedingJoinPoint, org.aspectj.lang.JoinPoint.StaticPart
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.
Constructor and Description |
---|
MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
Create a new MethodInvocationProceedingJoinPoint, wrapping the given
Spring ProxyMethodInvocation object.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getArgs() |
int |
getId() |
String |
getKind() |
org.aspectj.lang.Signature |
getSignature() |
SourceLocation |
getSourceLocation() |
org.aspectj.lang.JoinPoint.StaticPart |
getStaticPart() |
Object |
getTarget()
Returns the Spring AOP target.
|
Object |
getThis()
Returns the Spring AOP proxy.
|
Object |
proceed() |
Object |
proceed(Object[] arguments) |
void |
set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure) |
String |
toLongString() |
String |
toShortString() |
String |
toString() |
public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
methodInvocation
- the Spring ProxyMethodInvocation objectpublic void set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure)
set$AroundClosure
in interface org.aspectj.lang.ProceedingJoinPoint
public Object proceed() throws Throwable
proceed
in interface org.aspectj.lang.ProceedingJoinPoint
Throwable
public Object proceed(Object[] arguments) throws Throwable
proceed
in interface org.aspectj.lang.ProceedingJoinPoint
Throwable
public Object getThis()
null
.getThis
in interface org.aspectj.lang.JoinPoint
public Object getTarget()
null
if there is no target.getTarget
in interface org.aspectj.lang.JoinPoint
public Object[] getArgs()
getArgs
in interface org.aspectj.lang.JoinPoint
public org.aspectj.lang.Signature getSignature()
getSignature
in interface org.aspectj.lang.JoinPoint
getSignature
in interface org.aspectj.lang.JoinPoint.StaticPart
public SourceLocation getSourceLocation()
getSourceLocation
in interface org.aspectj.lang.JoinPoint
getSourceLocation
in interface org.aspectj.lang.JoinPoint.StaticPart
public String getKind()
getKind
in interface org.aspectj.lang.JoinPoint
getKind
in interface org.aspectj.lang.JoinPoint.StaticPart
public int getId()
getId
in interface org.aspectj.lang.JoinPoint.StaticPart
public org.aspectj.lang.JoinPoint.StaticPart getStaticPart()
getStaticPart
in interface org.aspectj.lang.JoinPoint
public String toShortString()
toShortString
in interface org.aspectj.lang.JoinPoint
toShortString
in interface org.aspectj.lang.JoinPoint.StaticPart
public String toLongString()
toLongString
in interface org.aspectj.lang.JoinPoint
toLongString
in interface org.aspectj.lang.JoinPoint.StaticPart