Context-oriented programming

377Citations
Citations of this article
186Readers
Mendeley users who have this article in their library.

Abstract

Context-dependent behavior is becoming increasingly important for a wide range of application domains, from pervasive computing to common business applications. Unfortunately, mainstream programming languages do not provide mechanisms that enable software entities to adapt their behavior dynamically to the current execution context. This leads developers to adopt convoluted designs to achieve the necessary runtime flexibility. We propose a new programming technique called Context-oriented Programming (COP) which addresses this problem. COP treats context explicitly, and provides mechanisms to dynamically adapt behavior in reaction to changes in context, even after system deployment at runtime. In this paper, we lay the foundations of COP, show how dynamic layer activation enables multi-dimensional dispatch, illustrate the application of COP by examples in several language extensions, and demonstrate that COP is largely independent of other commitments to programming style. ©JOT, 2002.

Cite

CITATION STYLE

APA

Hirschfeld, R., Costanza, P., & Nierstrasz, O. (2008). Context-oriented programming. Journal of Object Technology, 7(3), 125–151. https://doi.org/10.5381/jot.2008.7.3.a4

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free