Paper record

W2057334711

Getting started with ASPECTJ

Gregor Kiczales, Erik Hilsdale, Jim Hugunin, Mik A. Kersten, Jeffrey Palm, William G. Griswold

Year
2001
Venue
Communications of the ACM
References
6
Cited by
602

Details and counts from OpenAlex.

Abstract

This article focuses on AspectJ, a general purpose aspect-oriented extension to Java programming language. Many software developers are attracted to the idea of aspect-oriented programming (AOP). They recognize the concept of crosscutting concerns and know they have had problems with the implementation of such concerns in the past. AspectJ addresses those problems. This article presents a series of examples which illustrate the kinds of aspects programmers can implement using AspectJ and the benefits of associated with doing so. The article presents a staged approach based on identifying two broad categories of aspects namely development aspects which facilitate tasks such as debugging, testing, and performance tuning of applications and production aspects which implement functionality intended to be included in shipping applications. These categories are informal, and this ordering is not the only way to adopt AspectJ. Using AspectJ results in clean modular implementations of crosscutting concerns such as tracing, contract enforcement, display updating, synchronization, consistency checking, protocol management and others.