Data di Pubblicazione:
2010
Abstract:
The box model is a component model for the object-oriented
paradigm, that defines components (the boxes) with clear
encapsulation boundaries. Having well-defined boundaries is
crucial in component-based software development, because it
enables to argue about the interference and
interaction between a component and its context. In general, boxes
contain several objects and inner boxes, of which some are
local to the box and cannot be accessed from other boxes and some
can be accessible by other boxes.
A trait is a set of methods divorced from any class hierarchy.
Traits can be composed together to form classes or other traits.
We present a calculus for boxes and traits. Traits are units of
fine-grained reuse, whereas boxes can be seen as units of
coarse-grained reuse. The calculus is equipped with an ownership
type system and allows us to combine coarse- and fine-grained
reuse of code by maintaining encapsulation of
components.
Tipologia CRIS:
04A-Conference paper in volume
Keywords:
Java; Trait; Box; Type System
Elenco autori:
Lorenzo Bettini; Ferruccio Damiani; Marco De Luca; Kathrin Geilmann; Jan Schaefer
Link alla scheda completa:
Link al Full Text:
Titolo del libro:
Coordination Models and Languages 12th International Conference, COORDINATION 2010, Amsterdam, The Netherlands, June 7-9, 2010. Proceedings
Pubblicato in: