A Methodology for the Automated Introduction of Design Patterns
Citation:O Cinneide, Mel; Nixon, Patrick. 'A Methodology for the Automated Introduction of Design Patterns'. - Dublin, Trinity College Dublin, Department of Computer Science, TCD-CS-1999-18, 1999, pp10
TCD-CS-1999-18.pdf (PDF) 70.85Kb
In reengineering legacy code it is frequently useful to introduce a design pattern in order to add clarity to the system and thus facilitate further program evolution. We show that this type of transformation can be automated in a pragmatic manner and present a methodology for the development of design pattern transformations. We address the issues of the definition of a starting point for the transformation, the decomposition of a pattern into minipatterns and the development of corresponding minitransformations that can introduce these minipatterns to a program. We argue that behaviour preservation is a key issue and develop a rigorous argument of this for each minitransformation we discover. The architecture of an existing software prototype is also discussed and the results of applying this methodology to develop a transformation for the Factory Method pattern are presented.
Publisher:Trinity College Dublin, Department of Computer Science
Type of material:Technical Report
Series/Report no:Computer Science Technical Report
Availability:Full text available