13th Annual IEEE International Symposium and Workshop on Engineering of Computer Based Systems (ECBS'06)
Rava: Designing a Java Extension with Dynamic Object Roles
Postdam, Germany
March 27-March 30
ISBN: 0-7695-2546-6
Chengwan He, Wuhan Institute of Chemical Technology, China
Zhijie Nie, Wuhan Institute of Chemical Technology, China
Bifeng Li, Wuhan Institute of Chemical Technology, China
Keqing He, State key laboratory of Software Engineering, Wuhan University, China
Dynamic object roles are widely considered to be helpful to conceptual modeling of application. This paper presents an approach to role implementation based on Mediator pattern, which is used to object behavior extension in class-based language. We present a prototypical implementation of the approach by extending the Java language, called Rava. In the approach, role management (generation of role object, dynamic binding of core object and role etc.) is implemented by Mediator object, which reduces complexity of client program. At the same time, the binding relationship between core object and role is also saved in Mediator object, which reduces the coupling between core object and role and is helpful to improving their reusability. We have developed a Rava to Java translator which makes Rava sources executable on every Java Virtual Machine. Our Approach can also be used to extend other class-based language.
Citation:
Chengwan He, Zhijie Nie, Bifeng Li, Lianlian Cao, Keqing He, "Rava: Designing a Java Extension with Dynamic Object Roles," ecbs, pp.453-459, 13th Annual IEEE International Symposium and Workshop on Engineering of Computer Based Systems (ECBS'06), 2006