Pluggable aspect instantiation models

  • Authors:
  • David H. Lorenz;Victor Trakhtenberg

  • Affiliations:
  • Dept. of Mathematics and Computer Science, Open University of Israel, Raanana, Israel;Dept. of Mathematics and Computer Science, Open University of Israel, Raanana, Israel

  • Venue:
  • SC'11 Proceedings of the 10th international conference on Software composition
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

An aspect encapsulates not only crosscutting behavior, but also crosscutting state. When aspects are stateful, there is a need to specify and control their instantiation. Unfortunately, aspect instantiation is a hard-wired feature in ASPECTJ. This feature cannot be customized by the application programmer. Specifically, there are six pre-defined instantiation models to choose from, each designated by a keyword: issingleton, perthis, pertarget, percflow, percflowbelow, pertypewithin. In this work, we introduce a new language mechanism and keyword 'perscope' that lets third-parties define custom aspect instantiation models. This new keyword replaces the six existing keywords in ASPECTJ, and may eliminate the need for introducing future ones.