Part 2. Applications of AspectJ with Spring

Part 2 puts the knowledge you gained in the first part to practical use by showing how AspectJ and the Spring Framework simplify enterprise applications. Although Spring provides dependency injection and enterprise service abstraction, AspectJ completes the picture by modularizing crosscutting concerns. We'll explore the two ways Spring integrates with AspectJ: through dynamic proxies and through byte-code weaving. You should be able to use most of the example code in your applications without much modification. Even if you aren't using Spring, you'll find that you can adopt these examples to suit your applications. We include a few examples from outside of Spring—specifically Swing and EJB—to show that ...

Get AspectJ in Action, Second Edition 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.