public interface AfterReturningAdvice extends AfterAdvice
MethodBeforeAdvice,
ThrowsAdvice| 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.
|
void afterReturning(java.lang.Object returnValue,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target)
throws java.lang.Throwable
returnValue - 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.