Design patterns are micro architectures that have proved to be reliable, robust and easy to implement. Detecting design pattern from source code of object-oriented system can help a designer, a developer or a maintainer to understand the software system. In this paper, a new method is provided which can detect design patterns from source code combining both static and dynamic analysis. To acquire the run-time dynamic information of software systems, a code instrumentation method is adopted. At the same time, all static and dynamic information is presented in UML diagrams format. The pattern detection process and its detection results are visual and interactive. This method is tested on a call center and a traffic simulation system. Experimental results prove that the method is effective in design patterns detection.
展开▼