concept multiple aspect in category aspectj

appears as: Multiple aspects
AspectJ in Action, Second Edition

This is an excerpt from Manning's book AspectJ in Action, Second Edition.

  • Multiple aspects may introduce the same named members as long as they have private access. It’s an error to introduce the same public member through multiple aspects.
  • 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 a mechanism needed to write reusable aspects. We’ll follow that by considering the effects of multiple aspects in a system advising the same join point, and ways to control ordering. We’ll complete this chapter by examining a way aspects can override the standard access-specification rules.