Remove duplications and fix bad names: Intercept an @annotation with Aspetcj in Spring
Intercepting a method call marked with an @Annotation using AspectJ and Spring it's easy enough and it's a good approach in terms of flexibility, scalability and design.- It's flexible because in the case you want to intercept a different method, you just have to move your annotation somewhere else.
- It's scalable because if you want to intercept more than one method, you just need to add the annotation in other methods.
- It results also in a good and clean code.
Read full article from Remove duplications and fix bad names: Intercept an @annotation with Aspetcj in Spring
No comments:
Post a Comment