Towards type-safe and context-based behavior adaptation

Y Zhao, C Zhu, B Han - 2012 9th International Conference on …, 2012 - ieeexplore.ieee.org
Y Zhao, C Zhu, B Han
2012 9th International Conference on Electrical Engineering …, 2012ieeexplore.ieee.org
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 …
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.
ieeexplore.ieee.org
Showing the best result for this search. See all results