Package org.springframework.aop.aspectj
Class MethodInvocationProceedingJoinPoint
java.lang.Object
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint
- All Implemented Interfaces:
- JoinPoint,- JoinPoint.StaticPart,- ProceedingJoinPoint
public class MethodInvocationProceedingJoinPoint
extends Object
implements ProceedingJoinPoint, JoinPoint.StaticPart
An implementation of the 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 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.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller, Adrian Colyer, Ramnivas Laddad
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.aspectj.lang.JoinPointJoinPoint.EnclosingStaticPart, JoinPoint.StaticPart
- 
Field SummaryFields inherited from interface org.aspectj.lang.JoinPointADVICE_EXECUTION, CONSTRUCTOR_CALL, CONSTRUCTOR_EXECUTION, EXCEPTION_HANDLER, FIELD_GET, FIELD_SET, INITIALIZATION, METHOD_CALL, METHOD_EXECUTION, PREINITIALIZATION, STATICINITIALIZATION, SYNCHRONIZATION_LOCK, SYNCHRONIZATION_UNLOCK
- 
Constructor SummaryConstructorsConstructorDescriptionMethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation) Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.
- 
Method SummaryModifier and TypeMethodDescriptionObject[]getArgs()intgetId()getKind()Returns the Spring AOP target.getThis()Returns the Spring AOP proxy.proceed()voidset$AroundClosure(AroundClosure aroundClosure) toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.lang.ProceedingJoinPointstack$AroundClosure
- 
Constructor Details- 
MethodInvocationProceedingJoinPointCreate a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.- Parameters:
- methodInvocation- the Spring ProxyMethodInvocation object
 
 
- 
- 
Method Details- 
set$AroundClosure- Specified by:
- set$AroundClosurein interface- ProceedingJoinPoint
 
- 
proceed- Specified by:
- proceedin interface- ProceedingJoinPoint
- Throws:
- Throwable
 
- 
proceed- Specified by:
- proceedin interface- ProceedingJoinPoint
- Throws:
- Throwable
 
- 
getThisReturns the Spring AOP proxy. Cannot benull.
- 
getTargetReturns the Spring AOP target. May benullif there is no target.
- 
getArgs
- 
getSignature- Specified by:
- getSignaturein interface- JoinPoint
- Specified by:
- getSignaturein interface- JoinPoint.StaticPart
 
- 
getSourceLocation- Specified by:
- getSourceLocationin interface- JoinPoint
- Specified by:
- getSourceLocationin interface- JoinPoint.StaticPart
 
- 
getKind- Specified by:
- getKindin interface- JoinPoint
- Specified by:
- getKindin interface- JoinPoint.StaticPart
 
- 
getIdpublic int getId()- Specified by:
- getIdin interface- JoinPoint.StaticPart
 
- 
getStaticPart- Specified by:
- getStaticPartin interface- JoinPoint
 
- 
toShortString- Specified by:
- toShortStringin interface- JoinPoint
- Specified by:
- toShortStringin interface- JoinPoint.StaticPart
 
- 
toLongString- Specified by:
- toLongStringin interface- JoinPoint
- Specified by:
- toLongStringin interface- JoinPoint.StaticPart
 
- 
toString
 
-