February 2009
Intermediate to advanced
332 pages
5h 27m
English
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.
Read now
Unlock full access