Chapter 4. Advising beans

This chapter covers

  • Basics of aspect-oriented programming

  • Creating aspects from POJOs

  • Automatically proxying beans

  • Using @AspectJ annotations

  • Injecting dependencies into AspectJ aspects

As I’m writing this chapter, Texas (where I reside) is going through several days of record-high temperatures. It’s really hot. In weather like this, air-conditioning is a must. But the downside of air-conditioning is that it uses electricity and electricity costs money. And there’s very little we can do to avoid paying for a cool and comfortable home. That’s because every home has a meter that measures every single kilowatt, and once a month someone comes by to read that meter so that the electric company accurately knows how much to bill us. ...

Get Spring 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.