O'Reilly logo

Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools by Matthew Webster, George Harley, Andy Clement, Adrian Colyer

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 8. Inter-Type Declarations

Whereas advice is a declaration that an aspect will execute certain behavior in the program control flow at designated join points, inter-type declarations are a statement that an aspect takes complete responsibility for certain capabilities on behalf of other types (the “targets” of the inter-type declarations). Inter-type declarations are useful when you need one or more types in a program to acquire a capability (such as the ability to be printed) for some common purpose.

Inter-type declarations can be used to provide definitions of fields, methods, and constructors on behalf of other types. They can also be used to implement interfaces and to declare super-types. Section 8.1 shows you how to use inter-type ...

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