You select a pattern and click Discover Architecture to
find code that displays classes and interfaces that constitute the selected
pattern. Reviewing the patterns in code architecture is an efficient way to
gain an understanding of how an application is designed.
Before you run architectural discovery, the workspace must be loaded.
To automatically discover a pattern in the architecture of existing
code:
- Click , expand Modeling,
select Diagram Navigator, and click OK.
The Diagram Navigator view opens.
- In the Diagram Navigator view under Architectural
Discovery, expand one of the following categories to show the patterns in
it:
- Design Patterns
- Object-oriented Patterns
- Structural Patterns
- System Patterns
- Select the pattern you want to detect in the code architecture.
- Right-click the pattern and click Discover Architecture.
Architectural discovery runs on the entire workspace and processing time depends
on the size of the workspace. The Progress window opens to indicate the status
of the architectural discovery as it searches the workspace for instances
of the selected pattern in the code. When the architectural discovery finishes,
the number of topic diagrams created that display classes and interfaces constituting
the selected pattern appears in brackets, as illustrated here:
.