Join Point Interfaces for Safe and Flexible Decoupling of Aspects
Abstract
In current aspect-oriented systems, aspects usually carry, through their pointcuts, explicit references to the base code. Those references are fragile and hinder important software engineering properties such as modular reasoning and independent evolution of aspects and base code. In this work, we introduce a novel abstraction called Join Point Interface, which, by design, aids modular reasoning and independent evolution by decoupling aspects from base code and by providing a modular type-checking algorithm. Join point interfaces can be used both with implicit announcement through pointcuts, and with explicit announcement, using closure join points. Join point interfaces further offer polymorphic dispatch on join points, with an advice-dispatch semantics akin to multimethods. To support flexible join point matching, we incorporate into our language an earlier proposal for generic advice, and introduce a mechanism for controlled global quantification. We motivate each language feature in detail, showing that it is necessary to obtain a language design that is both type safe and flexible enough to support typical aspect-oriented programming idioms. We have implemented join point interfaces as an open-source extension to AspectJ. A case study on existing aspect-oriented programs supports our design, and in particular shows the necessity of both generic interfaces and some mechanism for global quantification.
Más información
Título según WOS: | Join Point Interfaces for Safe and Flexible Decoupling of Aspects |
Título de la Revista: | ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY |
Volumen: | 23 |
Número: | 1 |
Editorial: | ASSOC COMPUTING MACHINERY |
Fecha de publicación: | 2014 |
Idioma: | English |
URL: | http://dl.acm.org/citation.cfm?doid=2582050.2559933 |
DOI: |
10.1145/2559933 |
Notas: | ISI |