2006 · 42 citations · 9 references
ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingAbstract Syntax TreesApplication Programming InterfacesProgramming Language DesignSoftware ConstructionAbstraction MechanismsAspect-oriented ProgrammingFunctional Language DesignModule CompositionOpen Modules
AspectJ does not provide a mechanism to hide implementation details from advice. As a result, aspects are tightly coupled to the implementation of the code they advise, while the behaviour of the base code is impossible to determine without analysing all advice that could modify its behaviour.The concept of open modules is proposed by Aldrich to Solve the problems that arise from unrestricted advice. Defined for a small functional language, it provides an encapsulation construct that allows an implementation to limit the set of points to which external advice may apply.We present an adaptation of open modules for AspectJ. We expand open modules to encompass the full set of pointcut primitives for AspectJ, extend its method of module composition to include the ability to open up a module, and describe the implementation of the design as an extension of the AspectBench compiler. We also provide an example of the use of open modules on a substantial AspectJ program to show how it would fit into existing AspectJ projects.
9
Raja Vallée-Rai, Phong Co, Étienne Gagnon et al. · 2010 · 939 citations
Pavel Avgustinov, Aske Simon Christensen, Laurie Hendren et al. · 2005 · 299 citations
Aspect-oriented programming and modular reasoning
Gregor Kiczales, Mira Mezini · 2005 · 284 citations
Daniel S. Dantas, David Walker · 2006 · 133 citations