|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint
public class MethodInvocationProceedingJoinPoint
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.
| Nested Class Summary | |
|---|---|
private class |
MethodInvocationProceedingJoinPoint.MethodSignatureImpl
Lazily initialized MethodSignature. |
private class |
MethodInvocationProceedingJoinPoint.SourceLocationImpl
Lazily initialized SourceLocation. |
| Nested classes/interfaces inherited from interface org.aspectj.lang.JoinPoint |
|---|
org.aspectj.lang.JoinPoint.EnclosingStaticPart, org.aspectj.lang.JoinPoint.StaticPart |
| Field Summary | |
|---|---|
private java.lang.Object[] |
defensiveCopyOfArgs
|
private ProxyMethodInvocation |
methodInvocation
|
private org.aspectj.lang.Signature |
signature
Lazily initialized signature object |
private org.aspectj.lang.reflect.SourceLocation |
sourceLocation
Lazily initialized source location object |
| Fields inherited from interface org.aspectj.lang.JoinPoint |
|---|
ADVICE_EXECUTION, CONSTRUCTOR_CALL, CONSTRUCTOR_EXECUTION, EXCEPTION_HANDLER, FIELD_GET, FIELD_SET, INITIALIZATION, METHOD_CALL, METHOD_EXECUTION, PREINITIALIZATION, STATICINITIALIZATION, SYNCHRONIZATION_LOCK, SYNCHRONIZATION_UNLOCK |
| Constructor Summary | |
|---|---|
MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object. |
|
| Method Summary | |
|---|---|
java.lang.Object[] |
getArgs()
|
int |
getId()
|
java.lang.String |
getKind()
|
org.aspectj.lang.Signature |
getSignature()
|
org.aspectj.lang.reflect.SourceLocation |
getSourceLocation()
|
org.aspectj.lang.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(org.aspectj.runtime.internal.AroundClosure aroundClosure)
|
java.lang.String |
toLongString()
|
java.lang.String |
toShortString()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final ProxyMethodInvocation methodInvocation
private java.lang.Object[] defensiveCopyOfArgs
private org.aspectj.lang.Signature signature
private org.aspectj.lang.reflect.SourceLocation sourceLocation
| Constructor Detail |
|---|
public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
methodInvocation - the Spring ProxyMethodInvocation object| Method Detail |
|---|
public void set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure)
set$AroundClosure in interface org.aspectj.lang.ProceedingJoinPoint
public java.lang.Object proceed()
throws java.lang.Throwable
proceed in interface org.aspectj.lang.ProceedingJoinPointjava.lang.Throwable
public java.lang.Object proceed(java.lang.Object[] arguments)
throws java.lang.Throwable
proceed in interface org.aspectj.lang.ProceedingJoinPointjava.lang.Throwablepublic java.lang.Object getThis()
null.
getThis in interface org.aspectj.lang.JoinPointpublic java.lang.Object getTarget()
null if there is no target.
getTarget in interface org.aspectj.lang.JoinPointpublic java.lang.Object[] getArgs()
getArgs in interface org.aspectj.lang.JoinPointpublic org.aspectj.lang.Signature getSignature()
getSignature in interface org.aspectj.lang.JoinPointgetSignature in interface org.aspectj.lang.JoinPoint.StaticPartpublic org.aspectj.lang.reflect.SourceLocation getSourceLocation()
getSourceLocation in interface org.aspectj.lang.JoinPointgetSourceLocation in interface org.aspectj.lang.JoinPoint.StaticPartpublic java.lang.String getKind()
getKind in interface org.aspectj.lang.JoinPointgetKind in interface org.aspectj.lang.JoinPoint.StaticPartpublic int getId()
getId in interface org.aspectj.lang.JoinPoint.StaticPartpublic org.aspectj.lang.JoinPoint.StaticPart getStaticPart()
getStaticPart in interface org.aspectj.lang.JoinPointpublic java.lang.String toShortString()
toShortString in interface org.aspectj.lang.JoinPointtoShortString in interface org.aspectj.lang.JoinPoint.StaticPartpublic java.lang.String toLongString()
toLongString in interface org.aspectj.lang.JoinPointtoLongString in interface org.aspectj.lang.JoinPoint.StaticPartpublic java.lang.String toString()
toString in interface org.aspectj.lang.JoinPointtoString in interface org.aspectj.lang.JoinPoint.StaticParttoString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||