Chapter 2. Attacking the Problem with Aspects
We established in the previous chapter that existing techniques provide inadequate separation of crosscutting concerns. Aspect orientation solves this problem by providing a composition mechanism to compose additional behaviors from outside a class into the class itself. Composition can occur during compilation or runtime. But aspect orientation is more than just a composition mechanism. It is a way for you to separate the implementation of different concerns into separate modules. Through simple code examples in AspectJ—one of the most popular aspect technologies today—we demonstrate how aspects work and how aspect orientation helps you solve the problem of crosscutting and achieve better modularity. ...
Get Aspect-Oriented Software Development with Use Cases 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.