2006 · 23 citations · 14 references
ComputingComputer ScienceProgramming LanguagesSemanticsSystems ProgrammingAnnotationApplication Programming InterfacesAspect AnnotationAspect-oriented ProgrammingLogging
AspectJ-like languages are currently ineffective at modularizing heterogeneous concerns that are tightly coupled to the source code of the base program, such as logging, invariants, error handling, and optimization. This leads to complicated and fragile pointcuts and large numbers of highly-repetitive and incomprehensible aspects. We propose statement annotations as a robust mechanism for exposing the join points needed by heterogeneous concerns and for enabling declarative fine-grained advising. We propose an extension to Java to support statement annotations and AspectJ’s pointcut language to match them. This allows us to implement heterogeneous concerns using a combination of simple and robust aspects and explicit and local annotations. We illustrate this using a logging aspect that logs messages at specific locations in the source code. Statement annotations also simplify advising specific object instances, local variables, and statements. We demonstrate this using an aspect that traces method calls made to specific object instances and calls made from specific call sites. Keywords statement annotations, byte code annotations, fragile pointcut problem, logging problem, statement-level join points, instance-local advising 1.
14
Erik Hilsdale, Jim Hugunin · 2004 · 342 citations
Information hiding interfaces for aspect-oriented design
Kevin Sullivan, William G. Griswold, Yuanyuan Song et al. · 2005 · 153 citations
A join point for loops in AspectJ
Bruno Harbulot, John R. Gurd · 2006 · 107 citations
Separating features in source code: an exploratory study
Gail C. Murphy, Albert Lai, Robert J. Walker et al. · 2001 · 106 citations
Asymmetrically vs. Symmetrically Organized Paradigms for Software Composition
William Harrison, Harold Ossher, Peri Tarr et al. · 2002 · 105 citations