Distribution and persistence as aspects

  • Authors:
  • Sérgio Soares;Paulo Borba;Eduardo Laureano

  • Affiliations:
  • Computing Systems Department, Pernambuco State University, Madalena, Recife—PE, CEP 50720-001, Brazil;Informatics Center, Federal University of Pernambuco, Cidade Universitária, Recife—PE, Caixa Postal 7851, CEP 50732-970, Brazil;Microsoft Corporation, One Microsoft Way—50/1315, Redmond, WA 98052, U.S.A.

  • Venue:
  • Software—Practice & Experience - Research Articles
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper reports our experience using AspectJ, a general-purpose aspect-oriented extension to Java, to implement distribution and persistence concerns in a Web-based information system. This system was originally implemented in Java and restructured with AspectJ. Our main contribution is to show that AspectJ is useful for implementing several persistence and distribution concerns in the considered application, but also in similar applications. We have also identified interferences between the implemented aspects and a few drawbacks in the language, so we suggest some minor language modifications that could significantly improve similar implementations. Despite those problems, we argue that the AspectJ implementation is superior to the pure Java implementation. Some of the aspects implemented in our experiment are abstract and constitute a simple aspect framework. The other aspects are application specific but we suggest that different implementations might follow the same aspect patterns. The framework and the patterns allow us to propose architecture-specific guidelines that provide practical advice for both restructuring and implementing certain kinds of persistent and distributed applications with AspectJ. Copyright © 2006 John Wiley & Sons, Ltd.This work was performed while the first and third authors were at Informatics Center of the Federal University of Pernambuco