Skip to main content
QUICK REVIEW

[Paper Review] Pluggable AOP: Designing Aspect Mechanisms for Third-party Composition

Sergei Kojarski, David H. Lorenz|arXiv (Cornell University)|Apr 30, 2005
Advanced Software Engineering MethodologiesComputer Science42 references19 citations
TL;DR

This paper proposes a mixin-based, pluggable aspect mechanism for third-party composition of dynamic aspect extensions in Aspect-Oriented Programming (AOP). By decoupling aspect semantics from the base language and enabling collaboration through delegation in a pipe-and-filter architecture, the approach allows independently developed aspect mechanisms—such as method call interception and division-by-zero checking—to be composed without modification, ensuring correct and composable crosscutting concern handling.

ABSTRACT

Studies of Aspect-Oriented Programming (AOP) usually focus on a language in which a specific aspect extension is integrated with a base language. Languages specified in this manner have a fixed, non-extensible AOP functionality. In this paper we consider the more general case of integrating a base language with a set of domain specific third-party aspect extensions for that language. We present a general mixin-based method for implementing aspect extensions in such a way that multiple, independently developed, dynamic aspect extensions can be subject to third-party composition and work collaboratively.

Motivation & Objective

  • To solve the problem of composing independently developed, third-party aspect extensions for a base language without modifying their implementations.
  • To enable collaborative execution of multiple aspect mechanisms that operate at different levels of AOP granularity.
  • To provide a semantical framework where the meaning of a program in the presence of multiple aspect extensions can be derived from the individual mechanisms.
  • To decouple aspect mechanism semantics from the base language semantics, improving modularity and reusability.
  • To support practical composition of domain-specific aspect extensions with general-purpose AOP functionality, such as AspectJ-like features.

Proposed method

  • The approach models aspect mechanisms as expression evaluation transformers that delegate or expose evaluation to other mechanisms.
  • It uses a pipe-and-filter architecture with delegation semantics, where each aspect mechanism processes expressions and forwards control to the next.
  • The base mechanism acts as the terminator, handling final expression evaluation without further delegation.
  • Aspect mechanisms are designed to expose only their AOP effects, avoiding interference with implementation internals of other mechanisms.
  • The framework ensures that advice from one aspect can intercept calls introduced by another aspect, while avoiding interference with implementation code.
  • The method supports non-translation-based composition, avoiding the limitations of frameworks like XAspects that rely on translating to a general-purpose AOP language.

Experimental results

Research questions

  • RQ1How can multiple, independently developed aspect extensions be composed in a third-party, non-invasive manner?
  • RQ2What semantics enable correct collaboration between aspect mechanisms that operate at different levels of AOP granularity?
  • RQ3How can aspect mechanisms be designed to expose only their AOP effects, avoiding interference with each other’s implementation?
  • RQ4Can a modular, composable AOP framework be constructed without relying on translation to a general-purpose AOP language?
  • RQ5What architectural patterns support the composition of aspect mechanisms while preserving correctness and modularity?

Key findings

  • The proposed framework enables third-party composition of aspect mechanisms without modifying their implementations, supporting collaborative execution.
  • The mixin-based, delegation-driven architecture allows multiple aspect mechanisms to work together even when they are not expressible in each other’s language.
  • The approach successfully handles crosscutting concerns like method call interception and division-by-zero checking in a composable way, avoiding false positives and negatives.
  • The method supports modular AOP semantics by separating aspect mechanism behavior from base language semantics.
  • The implementation demonstrates that AspectJ-style pointcuts and advice can be implemented as aspect extensions using this framework.
  • The framework is not limited to pipe-and-filter composition and can be generalized to support more sophisticated aspect composition patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.