Spring AOP AspectJ Xml Configuration
Spring
enables you to define the aspects, advices and pointcuts in xml file.
Let's
see the xml elements that are used to define advice.
aop:before It is applied
before calling the actual business logic method.
aop:after It is applied
after calling the actual business logic method.
aop:after-returning
it is applied after calling the actual business logic method. It can be used to
intercept the return value in advice.
aop:around It is applied
before and after calling the actual business logic method.
aop:after-throwing
It is applied if actual business logic method throws exception.
No comments:
Post a Comment