Usage and Testability of AOP: an empirical study of AspectJ - Université de Rennes Accéder directement au contenu
Article Dans Une Revue Information and Software Technology Année : 2012

Usage and Testability of AOP: an empirical study of AspectJ

Résumé

Context. Back in 2001, the MIT announced aspect-oriented programming as a key technology in the next 10 years. Nowadays, 10 years later, AOP is still not widely adopted. Objective. The objective of this work is to understand the current status of AOP practice through the analysis of open-source project which use AspectJ. Method. First we analyze different dimensions of AOP usage in 38 AspectJ projects. We investigate the degree of coupling between aspects and base programs, and the usage of the pointcut description language. A second part of our study focuses on testability as an indicator of maintainability. We also compare testability metrics on Java and AspectJ implementations of the HealthWatcher aspect-oriented benchmark. Results. The first part of the analysis reveals that the number of aspects does not increase with the size of the base program, that most aspects are woven in every places in the base program and that only a small portion of the pointcut language is used. The second part about testability reveals that AspectJ reduces the size of modules, increases their cohesion but also increases global coupling, thus introducing a negative impact on testability. Conclusion. These observations and measures reveal a major trend: AOP is currently used in a very cautious way. This cautious usage could come from a partial failure of AspectJ to deliver all promises of AOP, in particular an increased software maintainability.
Fichier principal
Vignette du fichier
aop-analysis.pdf (461.56 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-00726119 , version 1 (28-08-2012)

Identifiants

  • HAL Id : hal-00726119 , version 1

Citer

Freddy Munoz, Benoit Baudry, Romain Delamare, Yves Le Traon. Usage and Testability of AOP: an empirical study of AspectJ. Information and Software Technology, 2012. ⟨hal-00726119⟩
455 Consultations
328 Téléchargements

Partager

Gmail Facebook X LinkedIn More