We present an extension for a Java like language with a mechanism for dynamically extending object behaviors. Our approach consists in moving the addition of new features from class (static) level to object (dynamic) level: the basic features of entities (representing their structure) are separated from the additional ones (wrapper classes whose instances represent run-time added behaviors). At run-time, these entities can be dynamically composed by instantiating wrapper objects which are attached to basic entities. We formalize our extension by adding the new constructs to Featherweight Java; the core language so extended (Featherweight Wrap Java) is type safe.
Titolo: | Featherweight Wrap Java |
Autore/i: | L. Bettini; S. Capecchi; GIACHINO, ELENA |
Autore/i Unibo: | |
Anno: | 2007 |
Titolo del libro: | Proceedings of the 2007 ACM Symposium on Applied Computing |
Pagina iniziale: | 1094 |
Pagina finale: | 1100 |
Digital Object Identifier (DOI): | http://dx.doi.org/10.1145/1244002.1244242 |
Abstract: | We present an extension for a Java like language with a mechanism for dynamically extending object behaviors. Our approach consists in moving the addition of new features from class (static) level to object (dynamic) level: the basic features of entities (representing their structure) are separated from the additional ones (wrapper classes whose instances represent run-time added behaviors). At run-time, these entities can be dynamically composed by instantiating wrapper objects which are attached to basic entities. We formalize our extension by adding the new constructs to Featherweight Java; the core language so extended (Featherweight Wrap Java) is type safe. |
Data prodotto definitivo in UGOV: | 19-gen-2015 |
Appare nelle tipologie: | 4.01 Contributo in Atti di convegno |