O'Reilly logo

Aspect-Oriented Software Development with Use Cases by Pan-Wei Ng, Ivar Jacobson

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

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