Chapter 6. Advanced AOP

In this chapter, we go into more detail about the AOP features available in Spring. In particular, we look at the topic in a much more real-world light: we explore the framework services in Spring that allow for transparent application of AOP; we cover real-world usage of AOP in the context of the sample application; and we discuss overcoming the limitations of Spring AOP using Spring/AspectJ integration.

First, we'll cover @AspectJ. Spring 2.5 brings a new way of writing aspects; it automatically turns classes with specific annotations into Spring AOP aspects. The @AspectJ support allows you to very easily and cleanly define aspects. Because the @AspectJ aspects are Spring beans, you have full access to Spring's DI features. ...

Get Pro Spring 2.5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.