Chapter 4. AspectJ Support
In this chapter, we will see how AspectJ facilitates Spring AOP. We will particularly focus on syntax for pointcuts and the possibility of using IoC on domain objects: either the definition is applied to the hierarchies of objects (context bindings), or pointcuts are applied on the names of Spring beans. We will see how aspects are set up in complex contexts to avoid conflicts, and which advanced functionalities are allowed (annotations on annotations). The possibility of using AspectJ syntax means that we can define the rules on which aspects can be applied through pointcuts in a better way. There are two modalities to use AspectJ's features with Spring: by means of annotations and XML configuration.
AspectJ annotations ...
Get Spring 2.5 Aspect-Oriented Programming 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.