public class AspectJAfterAdvice extends AbstractAspectJAdvice implements MethodInterceptor, AfterAdvice, java.io.Serializable
aspectJAdviceMethod, JOIN_POINT_KEY| Constructor and Description |
|---|
AspectJAfterAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(MethodInvocation mi)
Implement this method to perform extra treatments before and
after the invocation.
|
boolean |
isAfterAdvice()
Return whether this is an after advice.
|
boolean |
isBeforeAdvice()
Return whether this is a before advice.
|
argBinding, 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, toStringpublic AspectJAfterAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
public java.lang.Object invoke(MethodInvocation mi) throws java.lang.Throwable
MethodInterceptorJoinpoint.proceed().invoke in interface MethodInterceptormi - the method invocation joinpointJoinpoint.proceed();
might be intercepted by the interceptorjava.lang.Throwable - if the interceptors or the target object
throws an exceptionpublic boolean isBeforeAdvice()
AspectJPrecedenceInformationisBeforeAdvice in interface AspectJPrecedenceInformationpublic boolean isAfterAdvice()
AspectJPrecedenceInformationisAfterAdvice in interface AspectJPrecedenceInformation