Chapter 5. An Overview of AspectJ

This chapter presents an overview of the AspectJ language, describing the various constructs in AspectJ and how they fit together. We cover the notion of an aspect as a unit of modularity for crosscutting concerns, and then look at the constituent parts of an aspect—pointcuts (and the join point model on which they depend), advice, and inter-type declarations. The chapters that follow provide more detail on each of these concepts.

What Is An Aspect?

So what exactly is an aspect? Like a class, an aspect is a unit of modularity, encapsulation, and abstraction; and although classes and aspects have many similarities, there are also some important differences. Unlike classes, aspects can be used to implement crosscutting ...

Get Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools 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.