程序包 infra.aop

接口 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.
从以下版本开始:
3.0
作者:
Rod Johnson, TODAY 2021/2/20 22:20
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    afterReturning(Object returnValue, MethodInvocation invocation)
    Callback after a given method successfully returned.
  • 方法详细资料

    • afterReturning

      void afterReturning(Object returnValue, MethodInvocation invocation) throws Throwable
      Callback after a given method successfully returned.
      参数:
      returnValue - the value returned by the method, if any
      invocation - the method invocation join-point
      抛出:
      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.