DocumentCode
3084859
Title
Towards type-safe and context-based behavior adaptation
Author
Yinliang Zhao ; Changpeng Zhu ; Bo Han
Author_Institution
Xi´an Jiaotong Univ., Xi´an, China
fYear
2012
fDate
26-28 Sept. 2012
Firstpage
1
Lastpage
6
Abstract
Object composition is often advocated as a more flexible approach to specialize the behavior of objects dynamically. In this paper, we propose Dynamic Object Evolution Featherweight Java (DOEFJ), an extension of Featherweight Java with object composition and consultation, to support dynamic behavior adjustment of the program. In DOEFJ, instances of layered classes are created at run-time by the runtime system and are specialized in object composition. According to the current execution context, objects can be evolved by object composition to obtain new context-specific methods. A consultant based mechanism ensures that these new methods are correctly executed. With these mechanisms, the DOEFJ program can dynamically adapts its behavior to the current execution context. The sound type system of DOEFJ assures that no “message-not-understood” errors occur at run-time.
Keywords
Java; object-oriented methods; DOEFJ; context-based behavior adaptation; context-specific methods; dynamic object evolution featherweight Java; message-not-understood errors; object composition; object consultation; type-safe behavior adaptation; Batteries; Context; Java; Monitoring; Runtime; Semantics; Syntactics; Consultation; Context-Oriented Programming; Object Composition; Type System;
fLanguage
English
Publisher
ieee
Conference_Titel
Electrical Engineering, Computing Science and Automatic Control (CCE), 2012 9th International Conference on
Conference_Location
Mexico City
Print_ISBN
978-1-4673-2170-9
Type
conf
DOI
10.1109/ICEEE.2012.6421113
Filename
6421113
Link To Document