Special Issue Paper
Talents: an environment for dynamically composing units of reuse
Article first published online: 9 OCT 2012
Copyright © 2012 John Wiley & Sons, Ltd.
Software: Practice and Experience
Special Issue: Special issue on International Workshop on Smalltalk Technologies 2011.
Volume 44, Issue 4, pages 413–432, April 2014
How to Cite
Ressia, J., Gîrba, T., Nierstrasz, O., Perin, F. and Renggli, L. (2014), Talents: an environment for dynamically composing units of reuse. Softw: Pract. Exper., 44: 413–432. doi: 10.1002/spe.2160
- Issue published online: 4 MAR 2014
- Article first published online: 9 OCT 2012
- Manuscript Accepted: 10 SEP 2012
- Manuscript Revised: 20 AUG 2012
- Manuscript Received: 31 OCT 2011
- object-specific behavior;
- object adaption;
Reuse in object-oriented languages typically focuses on inheritance. Numerous techniques have been developed to provide finer-grained reuse of methods, such as flavors, mixins, and traits. These techniques, however, only deal with reuse at the level of classes. Class-based reuse is inherently static. Increasing use of reflection and meta-programming techniques in real-world applications underlines the need for more dynamic approaches. New approaches have shifted to object-specific reuse. However, these techniques fail to provide a complete solution to the composition issues arising during reuse. We propose a new approach that deals with reuse at the object level and that supports behavioral and state composition. We introduce a new abstraction called a talent that models features that are shared between objects of different class hierarchies. Talents provide a composition mechanism that is as flexible as that of traits but that is dynamic. Copyright © 2012 John Wiley & Sons, Ltd.