Evolution of object behavior using context relations
Linda M. Seiter, Jens Palsberg, Karl J. Lieberherr · IEEE Transactions on Software Engineering · 1998
A collection of design patterns was described by E. Gamma et al. (1994). Each pattern ensures that a certain system aspect can vary over time, for example the operations that can be applied to an object or the algorithm of a method. The patterns are described by constructs such as the inheritance and reference relations, attempting to emulate more dynamic relationships. As a result, the design patterns demonstrate how awkward it is to program natural concepts of evolution when using a traditional object oriented language. We present a new relation between classes: the context relation. It directly models dynamic evolution, and it is meaningful at both the design and implementation level. At the design level we extend the Unified Modeling Language (UML) to include the context relation as a new form of arrow between classes. At the implementation level we present a small extension of Java. The context relation introduces a new form of dynamic binding that serves as a replacement to delegation. We demonstrate how the context relation can be used to easily model and program numerous design patterns.
Cited by 74 works. doi:10.1109/32.663999
Authors
References
- Design Patterns: Elements of Reusable Object-Oriented Software
- Object-oriented modeling and design
- The Annotated C++ Reference Manual
- Object oriented design with applications
- Designing reusable classes
- Self: The power of simplicity
- The art of the metaobject protocol
- Using prototypical objects to implement shared behavior in object-oriented systems
- Object oriented design with applications
- The Art of the Metaobject Protocol