skip to main content
10.1145/2161996.2162003acmconferencesArticle/Chapter ViewAbstractPublication PagesmodularityConference Proceedingsconference-collections
research-article

A per-type instantiation mechanism for generic aspects

Published: 26 March 2012 Publication History

Abstract

We propose a per-type instantiation mechanism for generic aspects. Though AspectJ supports generic aspects, which declare type parameters, we cannot declare aspects that are parametrized over both field types and return types of applied join points without manually concretizing the type parameters. Our mechanism creates an instance of a generic aspect for each type of the applied join points.

References

[1]
The AspectJ 5 Development Kit Developer's Notebook. http://www.eclipse.org/aspectj/doc/released/adk15notebook/, 2005.
[2]
T. Aotani and H. Masuhara. SCoPE: an AspectJ compiler for supporting user-defined analysis-based pointcuts. In Proceedings of the 6th International Conference on Aspect-oriented Software Sevelopment (AOSD'07), pages 161--172, 2007.
[3]
B. D. Fraine, M. Südholt, and V. Jonckers. StrongAspectJ: flexible and safe pointcut/advice bindings. In Proceedings of the 7th International Conference on Aspect-Oriented Software Development (AOSD'08), pages 60--71, 2008.
[4]
E. Gamma, R. Helm, R. Johnson, and J. Vlissides. Design patterns: elements of reusable object-oriented software. Addison-Wesley, 1995.
[5]
J. Hannemann and G. Kiczales. Design pattern implementation in Java and AspectJ. In Proceedings of the 17th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA'02), pages 161--173, 2002.
[6]
E. Hilsdale and J. Hugunin. Advice weaving in AspectJ. In Proceedings of the 3rd International Conference on Aspect-Oriented Software Development (AOSD'04), pages 26--35, 2004.
[7]
A. Igarashi, B. Pierce, and P. Wadler. Featherweight Java: a minimal core calculus for Java and GJ. In Proceedings of the 14th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA'99), pages 132--146, 1999.
[8]
R. Jagadeesan, A. Jeffrey, and J. Riely. Typed parametric polymorphism for aspects. Science of Computer Programming, 63 (3): 267--296, 2006.
[9]
D. Lohmann, G. Blaschke, and O. Spinczyk. Generic Advice: On the combination of AOP with generative programming in AspectC. In Proceedings of the Third International Conference on Generative Programming and Component Engineering (GPCE2004), pages 55--74, 2004.
[10]
K. Ostermann, M. Mezini, and C. Bockisch. Expressive pointcuts for increased modularity. In Proceedings of the 19th European Conference on Object-Oriented Programming (ECOOP'05), pages 214--240, 2005.
[11]
H. Rajan and K. Sullivan. Eos: instance-level aspects for integrated system design. In Proceedings of the 9th European Software Engineering Conference held jointly with 11th ACM SIGSOFT International Symposium on Foundations of Software Engineering (ESEC/FSE'03), pages 297--306, 2003.
[12]
K. Sakurai, H. Masuhara, N. Ubayashi, S. Matsuura, and S. Komiya. Design and implementation of an aspect instantiation mechanism. Transactions on Aspect-Oriented Software Development, 3880: 259--292, 2006.

Index Terms

  1. A per-type instantiation mechanism for generic aspects

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    VariComp '12: Proceedings of the 3rd international workshop on Variability & Composition
    March 2012
    38 pages
    ISBN:9781450311014
    DOI:10.1145/2161996
    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

    In-Cooperation

    • AOSA: Aspect-Oriented Software Association

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 26 March 2012

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. aspect instantiation
    2. aspect-oriented programming
    3. generic aspects

    Qualifiers

    • Research-article

    Conference

    AOSD '12

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

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

    Other Metrics

    Citations

    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