Chapter 9. Integration with Spring

This chapter covers

  • Understanding Spring AOP basics

  • Using @AspectJ integration

  • Working with schema-style AOP

  • Weaving aspects using Spring

The Spring Framework, a widely used enterprise application framework, is based on three core ideas: dependency injection, enterprise services abstraction, and aspect-oriented programming. Dependency injection (DI) is at the heart of Spring. It allows components to be wired in a declarative manner. The enterprise services abstraction encourages isolating stable application logic from volatile infrastructure code. Of course, our main interest here is the use of AOP in Spring. AOP lets you separate the implementation of crosscutting concerns from business concerns. All of these features ...

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.