2 After returning advice:
After returning advice runs when a matched method execution completes normally.
It is declared inside an <aop:aspect> in the same way as before advice. For
example:
<aop:aspect id="afterReturningExample" ref="loginAspect">
<aop:after-returning
pointcut-ref="businessService"
returning="retVal"
method="logRequiredTask"/>
...
</aop:aspect>
The logRequiredTask method must declare a parameter named retVal. For example, the method signature may be declared as:
public void logRequiredTask(Object retVal) {...