This looks interesting...
Automatic Design Pattern Detection
Dirk Heuzeroth, University of Karlsruhe
Thomas Holl, University of Karlsruhe
Gustav Hogstrom, University of Växjö
Welf Lowe, University of Växjö
Full Article Text: Download PDF of full text Buy this article Get full text from IEEE Xplore
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/WPC.2003.1199193
We detect design patterns in legacy code combining static and dynamic analyses. The analyses do not depend on coding or naming conventions. We classify potential pattern instances according to the evidence our analyses provide. We discuss our approach for the Observer, Composite, Mediator, Chain of Responsibility and Visitor Patterns. Our Java analysis tool analyzes Java programs. We evaluate our approach by applying the tool on itself and on the Java Swing Set Example using the Swing library.