Declarative layer composition in framework-based environments

  • Authors:
  • Malte Appeltauer;Robert Hirschfeld

  • Affiliations:
  • Hasso-Plattner-Institut, Germany;Hasso-Plattner-Institut, Germany

  • Venue:
  • Proceedings of the International Workshop on Context-Oriented Programming
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Context-oriented programming (COP) can improve modularity by dedicated language constructs for crosscutting concerns. Although COP could be used in any application domain in general, its current implementations may require adaptations of source code that is not accessible to the developer. This, in turn, limits the interaction of adaptation mechanisms provided by COP language extensions with widely used programming abstractions such as frameworks. As a result, dynamic control over layers emerges as a crosscutting concern that obstructs the separation of concerns. In this paper, we discuss crosscutting layer composition in framework-based applications in detail. As a concrete example of such a framework-based application, we present a simple action adventure game that we implemented using a conventional COP language. Finally, we show, how our JCop language supports the modularization of these crosscutting concerns by language constructs for declarative layer composition.