Title :
AVal: an Extensible Attribute-Oriented Programming Validator for Java
Author :
Noguera, Carlos ; Pawlak, Renaud
Author_Institution :
INRIA - Futurs, France
Abstract :
Attribute Oriented Programming (@OP ) permits programmers to extend the semantics of a base program by annotating it with attributes that are related to a set of concerns. Examples of this are applications that rely on XDoclet (such as Hibernate) or, with the release of Java5¿s annotations, EJB3. The set of attributes that implements a concern defines a Domain Specific Language, and as such, imposes syntactic and semantic rules on the way attributes are included in the program or even on the program itself. We propose a framework for the definition and checking of these rules for @OP that uses Java5 annotations. We define an extensible set of meta-annotations to allow the validation of @OP programs, as well as the means to extend them using a compile-time model of the program¿s source code. We show the usefulness of the approach by presenting two examples of its use: an @OP extension for the Fractal component model called Fraclet, and the JSR 181 for web services definition.
Keywords :
DSL; Domain specific languages; Engines; Fractals; Java; Libraries; Program processors; Programming profession; Testing; Web services;
Conference_Titel :
Source Code Analysis and Manipulation, 2006. SCAM '06. Sixth IEEE International Workshop on
Conference_Location :
Philadelphia, PA, USA
Print_ISBN :
0-7695-2353-6
DOI :
10.1109/SCAM.2006.5