public class MethodInvocationProceedingJoinPoint
extends java.lang.Object
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 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.
Modifier and Type | Class and Description |
---|---|
private class |
MethodInvocationProceedingJoinPoint.MethodSignatureImpl
Lazily initialized MethodSignature.
|
private class |
MethodInvocationProceedingJoinPoint.SourceLocationImpl
Lazily initialized SourceLocation.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
args |
private ProxyMethodInvocation |
methodInvocation |
private static ParameterNameDiscoverer |
parameterNameDiscoverer |
private Signature |
signature
Lazily initialized signature object
|
private SourceLocation |
sourceLocation
Lazily initialized source location object
|
Constructor and Description |
---|
MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
Create a new MethodInvocationProceedingJoinPoint, wrapping the given
Spring ProxyMethodInvocation object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArgs() |
int |
getId() |
java.lang.String |
getKind() |
Signature |
getSignature() |
SourceLocation |
getSourceLocation() |
JoinPoint.StaticPart |
getStaticPart() |
java.lang.Object |
getTarget()
Returns the Spring AOP target.
|
java.lang.Object |
getThis()
Returns the Spring AOP proxy.
|
java.lang.Object |
proceed() |
java.lang.Object |
proceed(java.lang.Object[] arguments) |
void |
set$AroundClosure(AroundClosure aroundClosure) |
java.lang.String |
toLongString() |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
private static final ParameterNameDiscoverer parameterNameDiscoverer
private final ProxyMethodInvocation methodInvocation
private java.lang.Object[] args
private Signature signature
private SourceLocation sourceLocation
public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
methodInvocation
- the Spring ProxyMethodInvocation objectpublic void set$AroundClosure(AroundClosure aroundClosure)
public java.lang.Object proceed() throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object proceed(java.lang.Object[] arguments) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object getThis()
null
.public java.lang.Object getTarget()
null
if there is no target.public java.lang.Object[] getArgs()
public Signature getSignature()
public SourceLocation getSourceLocation()
public java.lang.String getKind()
public int getId()
public JoinPoint.StaticPart getStaticPart()
public java.lang.String toShortString()
public java.lang.String toLongString()
public java.lang.String toString()
toString
in class java.lang.Object