Design and implementation of an aspect instantiation mechanism

  • Authors:
  • Kouhei Sakurai;Hidehiko Masuhara;Naoyasu Ubayashi;Saeko Matuura;Seiichi Komiya

  • Affiliations:
  • Shibaura Institute of Technology;University of Tokyo;Kyushu Institute of Technology;Shibaura Institute of Technology;Shibaura Institute of Technology

  • Venue:
  • Transactions on Aspect-Oriented Software Development I
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper describes the design and implementation of association aspects, which are a linguistic mechanism for the AspectJ language that concisely associates aspect instances to object groups by extending the per-object aspects in AspectJ. This mechanism allows an aspect instance to be associated to a group of objects, and by providing a new pointcut primitive to specify aspect instances as execution context of advice. With association aspects, we can straightforwardly implement crosscutting concerns that have stateful behavior related to a particular group of objects. The new pointcut primitive can more flexibly specify aspect instances when compared against previous implicit mechanisms. We implemented a compiler for association aspects by modifying the AspectJ compiler, which reduces the size of data structures for keeping associations. Our benchmark tests confirm that the overheads of association aspects are reasonably small when compared against functionally equivalent aspects in pure AspectJ that manually manage associations. The expressiveness of association aspects is demonstrated through development of an integrated development environment with and without association aspects.