skip to main content
10.1145/2588548.2588552acmotherconferencesArticle/Chapter ViewAbstractPublication PagesmodularityConference Proceedingsconference-collections
research-article

Context holders: realizing multiple layer activation mechanisms in a single context-oriented language

Published: 22 April 2014 Publication History

Abstract

We propose LamFJ, a calculus for expressing various layer activation mechanisms in context-oriented programming languages. LamFJ extends FeatherweightJava with context holders which are the abstraction of dynamic layer activation. By encoding programs with different layer activation mechanisms into a program manipulating context holders, LamFJ serves as a foundation to reason about interactions between different mechanisms. This paper presents a sketch of the context holders and encodings of existing layer activation mechanisms.

References

[1]
Malte Appeltauer, Robert Hirschfeld, Hidehiko Masuhara, Michael Haupt, and Kazunori Kawauchi. Event-specific software composition in context-oriented programming. In SC '10, pages 50--65, 2010.
[2]
Engineer Bainomugisha, Jorge Vallejos, Coen De Roover, Andoni Lombide Carreton, and Wolfgang De Meuter. Interruptible context-dependent executions: A fresh look at programming context-aware applications. In Onward! '12, pages 67--84, 2012.
[3]
Sebastián González, Nicolás Cardozo, Kim Mens, Alfredo Cádiz, Jean-Christophe Libbrecht, and Julien Goffaux. Subjective-C: bringing context to mobile platform programming. In SLE'10, pages 246--265, 2011.
[4]
Robert Hirschfeld, Pascal Costanza, and Oscar Nierstrasz. Context-oriented programming. Journal of Object Technology, 7(3):125--151, 2008.
[5]
Atsushi Igarashi and Naoki Kobayashi. Resource usage analysis. TOPLAS, 27(2):264--313, 2005.
[6]
Atsushi Igarashi, Benjamin C. Pierce, and Philip Wadler. Featherweight Java: a minimal core calculus for Java and GJ. TOPLAS, 23(3):396--450, 2001.
[7]
Tetsuo Kamina, Tomoyuki Aotani, and Hidehiko Masuhara. EventCJ: a context-oriented programming language with declarative event-based context transition. In AOSD '11, pages 253--264, 2011.
[8]
Jens Lincke, Malte Appeltauer, Bastian Steinert, and Robert Hirschfeld. An open implementation for context-oriented layer composition in ContextJS. Science of Computer Programming, 76(12):1194--1209, December.
[9]
Michael Haupt Malte Appeltauer, Robert Hirschfeld and Hidehiko Masuhara. ContextJ: Context-oriented programming with java. Computer Software, 28(1):272--292, 2011.
[10]
Guido Salvaneschi, Carlo Ghezzi, and Matteo Pradella. ContextErlang: Introducing context-oriented programming in the actor model. In AOSD'12, pages 191--202, 2012.
[11]
Martin von Löwis, Marcus Denker, and Oscar Nierstrasz. Context-oriented programming: Beyond layers. In ICDL '07, pages 143--156, 2007.

Cited By

View all
  • (2016)Generalized Layer Activation Mechanism for Context-Oriented ProgrammingTransactions on Modularity and Composition I10.1007/978-3-319-46969-0_4(123-166)Online publication date: 30-Sep-2016
  • (2015)Type-Safe Layer-Introduced Base Functions with Imperative Layer ActivationProceedings of the 7th ACM International Workshop on Context-Oriented Programming10.1145/2786545.2786553(1-7)Online publication date: 4-Jul-2015

Index Terms

  1. Context holders: realizing multiple layer activation mechanisms in a single context-oriented language

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    FOAL '14: Proceedings of the 13th workshop on Foundations of aspect-oriented languages
    April 2014
    34 pages
    ISBN:9781450327985
    DOI:10.1145/2588548
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    • AOSA: Aspect-Oriented Software Association

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 22 April 2014

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. context-oriented programming
    2. layer activation mechanisms

    Qualifiers

    • Research-article

    Conference

    MODULARITY '14
    Sponsor:
    • AOSA

    Acceptance Rates

    FOAL '14 Paper Acceptance Rate 5 of 6 submissions, 83%;
    Overall Acceptance Rate 5 of 6 submissions, 83%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 07 Mar 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2016)Generalized Layer Activation Mechanism for Context-Oriented ProgrammingTransactions on Modularity and Composition I10.1007/978-3-319-46969-0_4(123-166)Online publication date: 30-Sep-2016
    • (2015)Type-Safe Layer-Introduced Base Functions with Imperative Layer ActivationProceedings of the 7th ACM International Workshop on Context-Oriented Programming10.1145/2786545.2786553(1-7)Online publication date: 4-Jul-2015

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media