public class AspectJAroundAdvice extends AbstractAspectJAdvice implements MethodInterceptor, Serializable
aspectJAdviceMethod, JOIN_POINT_KEY| Constructor and Description |
|---|
AspectJAroundAdvice(Method aspectJAroundAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected org.aspectj.lang.ProceedingJoinPoint |
lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi)
Return the ProceedingJoinPoint for the current invocation,
instantiating it lazily if it hasn't been bound to the thread already.
|
protected boolean |
supportsProceedingJoinPoint() |
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, toStringpublic AspectJAroundAdvice(Method aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
public boolean isBeforeAdvice()
AspectJPrecedenceInformationisBeforeAdvice in interface AspectJPrecedenceInformationpublic boolean isAfterAdvice()
AspectJPrecedenceInformationisAfterAdvice in interface AspectJPrecedenceInformationprotected boolean supportsProceedingJoinPoint()
supportsProceedingJoinPoint in class AbstractAspectJAdvicepublic Object invoke(MethodInvocation mi) throws Throwable
MethodInterceptorJoinpoint.proceed().invoke in interface MethodInterceptormi - the method invocation joinpointJoinpoint.proceed();
might be intercepted by the interceptorThrowable - if the interceptors or the target object
throws an exceptionprotected org.aspectj.lang.ProceedingJoinPoint lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi)
rmi - the current Spring AOP ReflectiveMethodInvocation,
which we'll use for attribute binding