Choosing AOP frameworks and style of configuration

Once you conclude that you will go ahead with the Aspect programming model to achieve or implement your requirements, this question comes into the picture: should you choose Spring AOP or the full-fledged AspectJ framework ?

After choosing the framework, the question of selecting the style of configuration would come up next. For example, in the case of the AspectJ framework, will you choose AspectJ code style or @AspectJ annotation style? Similarly, in the case of Spring AOP, will you select a Spring XML file or an @AspectJ-based annotation style to define various artifacts such as aspects, point-cuts, advice, and advisors?

Choosing the right framework with the specific style for defining ...

Get Java 9 Dependency Injection now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.