A Case Study Implementing Features Using AspectJ

  • Authors:
  • Christian Kastner;Sven Apel;Don Batory

  • Affiliations:
  • University of Magdeburg, Germany;University of Passau, Germany;University of Texas at Austin

  • Venue:
  • SPLC '07 Proceedings of the 11th International Software Product Line Conference
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Software product lines aim to create highly configurable programs from a set of features. Common belief and recent studies suggest that aspects are well-suited for implementing features. We evaluate the suitability of AspectJ with respect to this task by a case study that refactors the embedded database system Berkeley DB into 38 features. Contrary to our initial expectations, the results were not encouraging. As the number of aspects in a feature grows, there is a no- ticeable decrease in code readability and maintainability. Most of the unique and powerful features of AspectJ were not needed. We document where AspectJ is unsuitable for implementing features of refactored legacy applications and explain why