After returning advice by R4R Team

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) {...

Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!