接口 AfterReturningAdvice
- 所有超级接口:
Advice
,AfterAdvice
- 所有已知实现类:
AspectJAfterReturningAdvice
public interface AfterReturningAdvice extends AfterAdvice
After returning advice is invoked only on normal method return, not if an exception is thrown. Such advice can see the return value, but cannot change it.- 作者:
- Rod Johnson
- 另请参阅:
MethodBeforeAdvice
,ThrowsAdvice
方法详细资料
afterReturning
void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
Callback after a given method successfully returned.- 参数:
returnValue
- the value returned by the method, if anymethod
- method being invokedargs
- arguments to the methodtarget
- target of the method invocation. May benull
.- 抛出:
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.