Package org.springframework.aop.aspectj
Class AspectJAfterAdvice
java.lang.Object
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJAfterAdvice
- All Implemented Interfaces:
- Serializable,- Advice,- Interceptor,- MethodInterceptor,- AfterAdvice,- AspectJPrecedenceInformation,- Ordered
public class AspectJAfterAdvice
extends AbstractAspectJAdvice
implements MethodInterceptor, AfterAdvice, Serializable
Spring AOP advice wrapping an AspectJ after advice method.
- Since:
- 2.0
- Author:
- Rod Johnson
- See Also:
- 
Field SummaryFields inherited from class org.springframework.aop.aspectj.AbstractAspectJAdviceaspectJAdviceMethod, JOIN_POINT_KEYFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionAspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) 
- 
Method SummaryModifier and TypeMethodDescriptionImplement this method to perform extra treatments before and after the invocation.booleanReturn whether this is an after advice.booleanReturn whether this is a before advice.Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdviceargBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectClassLoader, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningGenericType, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, supportsProceedingJoinPoint, toString
- 
Constructor Details- 
AspectJAfterAdvicepublic AspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) 
 
- 
- 
Method Details- 
invokeDescription copied from interface:MethodInterceptorImplement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeJoinpoint.proceed().- Specified by:
- invokein interface- MethodInterceptor
- Parameters:
- mi- the method invocation joinpoint
- Returns:
- the result of the call to Joinpoint.proceed(); might be intercepted by the interceptor
- Throws:
- Throwable- if the interceptors or the target object throws an exception
 
- 
isBeforeAdvicepublic boolean isBeforeAdvice()Description copied from interface:AspectJPrecedenceInformationReturn whether this is a before advice.- Specified by:
- isBeforeAdvicein interface- AspectJPrecedenceInformation
 
- 
isAfterAdvicepublic boolean isAfterAdvice()Description copied from interface:AspectJPrecedenceInformationReturn whether this is an after advice.- Specified by:
- isAfterAdvicein interface- AspectJPrecedenceInformation
 
 
-