org.springframework.aop.aspectj

Class AspectJAfterReturningAdvice

    • Method Detail

      • afterReturning

        public void afterReturning(@Nullable
                                   java.lang.Object returnValue,
                                   java.lang.reflect.Method method,
                                   java.lang.Object[] args,
                                   @Nullable
                                   java.lang.Object target)
                            throws java.lang.Throwable
        Description copied from interface: AfterReturningAdvice
        Callback after a given method successfully returned.
        Specified by:
        afterReturning in interface AfterReturningAdvice
        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.