public class AspectJAfterReturningAdvice extends AbstractAspectJAdvice implements AfterReturningAdvice, AfterAdvice, java.io.Serializable
aspectJAdviceMethod, JOIN_POINT_KEYHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AspectJAfterReturningAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterReturning(java.lang.Object returnValue,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target)
Callback after a given method successfully returned.
|
boolean |
isAfterAdvice()
Return whether this is an after advice.
|
boolean |
isBeforeAdvice()
Return whether this is a before advice.
|
void |
setReturningName(java.lang.String name) |
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, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, supportsProceedingJoinPoint, toStringpublic AspectJAfterReturningAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
public boolean isBeforeAdvice()
AspectJPrecedenceInformationisBeforeAdvice in interface AspectJPrecedenceInformationpublic boolean isAfterAdvice()
AspectJPrecedenceInformationisAfterAdvice in interface AspectJPrecedenceInformationpublic void setReturningName(java.lang.String name)
setReturningName in class AbstractAspectJAdvicepublic void afterReturning(@Nullable java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, @Nullable java.lang.Object target) throws java.lang.Throwable
AfterReturningAdviceafterReturning in interface AfterReturningAdvicereturnValue - the value returned by the method, if anymethod - method being invokedargs - arguments to the methodtarget - target of the method invocation. May be null.java.lang.Throwable - if this object wishes to abort the call.
Any exception thrown will be returned to the caller if it's
allowed by the method signature. Otherwise the exception
will be wrapped as a runtime exception.