O'Reilly logo

AspectJ in Action by Ramnivas Laddad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Aspects: putting it all together

This chapter covers

  • Formally introducing aspects

  • Creating reusable aspects with aspect association

  • Using aspect precedence to coordinate multiple aspects

  • Bypassing access-specification rules using privileged aspects

Aspects represent the unit of modularization in AOP and AspectJ. They provide a way to include crosscutting constructs such as pointcuts and advice. You've already seen quite a few aspects in the preceding chapters' examples.

In this chapter, we'll take a closer look at the core aspect construct. We'll begin by examining the aspect construct in a formal way and compare it to the class—the most similar concept in object-oriented programming. Next, we'll examine the aspect association that provides ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required