Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.aop
Interface AfterReturningAdvice

All Superinterfaces:
  org.aopalliance.aop.Advice, AfterAdvice

All Known Implementing Classes:
  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.

Author:
  Rod Johnson
See Also:
  `MethodBeforeAdvice`, `ThrowsAdvice`

Method Summary
`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.

Method Detail

### afterReturning

    void afterReturning(java.lang.Object returnValue,
                        java.lang.reflect.Method method,
                        java.lang.Object[] args,
                        java.lang.Object target)
                        throws java.lang.Throwable

  Callback after a given method successfully returned.

  Parameters:
    `returnValue` - the value returned by the method, if any
    `method` - method being invoked
    `args` - arguments to the method
    `target` - target of the method invocation. May be `null`.
  Throws:
    `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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD