Top Description Methods
org.springframework.aop

public Interface AfterReturningAdvice

extends AfterAdvice
Known Direct Implementers
org.springframework.aop.aspectj.AspectJAfterReturningAdvice
Imports
java.lang.reflect.Method, org.springframework.lang.Nullable

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.
Author
Rod Johnson
See Also
MethodBeforeAdvice, ThrowsAdvice

Method Summary

Modifier and TypeMethod and Description
public void
afterReturning(Object
the value returned by the method, if any
returnValue
,
Method
the method being invoked
method
,
Object[]
the arguments to the method
args
,
Object
the target of the method invocation. May be null.
target
)

Callback after a given method successfully returned.

Method Detail

afterReturningback to summary
public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable

Callback after a given method successfully returned.

Parameters
returnValue:Object

the value returned by the method, if any

method:Method

the method being invoked

args:Object[]

the arguments to the method

target:Object

the target of the method invocation. May be null.

Exceptions
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.