Engineering of Computer Based Systems, IEEE Eastern European Conference on the (2011)
Sept. 5, 2011 to Sept. 6, 2011
This paper shows how intrinsic aspect-oriented design patterns can be used to implement object-oriented design patterns in order to achieve better compos ability compared to both original implementations of object-oriented design patterns and their aspect-oriented reimplementations. Director, an aspect-oriented pattern known for its ability to replace a number of object-oriented patterns, owes its success to its obliviousness to the problems addressed by the patterns it can be used instead of. The paper proposes how two other intrinsic aspect-oriented patterns can be used as an alternative to object-oriented patterns: Worker Object Creation can be successfully used instead of Proxy, while Cuckoo's Egg can replace Singleton, Abstract Factory, and Flyweight. To check that these replacements are valid beyond their isolated application, a small study has been conducted in which a composition of Worker Object Creation and Cuckoo's Egg in place of the composition of the original object-oriented patterns Proxy, Singleton, Abstract Factory, and Flyweight has been used. To assess the implementation of intrinsic aspect-oriented patterns compared to object-oriented patterns they replace and their aspect-oriented reimplementations, software metrics relevant both to object-oriented and aspect-oriented code mainly with respect to separation of concerns have been applied.
design patterns, intrinsic aspect-oriented design patterns, design pattern composition
Pavol Baca, Valentino Vranic, "Replacing Object-Oriented Design Patterns with Intrinsic Aspect-Oriented Design Patterns", Engineering of Computer Based Systems, IEEE Eastern European Conference on the, vol. 00, no. , pp. 19-26, 2011, doi:10.1109/ECBS-EERC.2011.13