The architectural discovery feature provides several patterns for you to choose from when you want to detect patterns in code. Each pattern is a familiar coding pattern to follow or to avoid when designing and writing code.
Architectural discovery is accessible in the Diagram Navigator view only. It provides four categories of patterns, as shown in the following screen capture:
The following screen capture shows the patterns in two of the categories, Design patterns and Object-oriented patterns:
When you select a pattern and run architectural discovery on it, the workspace is searched to find components that implement the selected pattern. A topic diagram is created to show each instance of the pattern. The number of topic diagrams created for a pattern is noted next to the pattern name. The following screen capture shows the results from running architectural discovery on two patterns in the Design patterns category, Factory Method and Utility. The screen capture shows that no Factory Method patterns were found and 125 Utility patterns were found.
If brackets do not appear after a pattern, it indicates that you have not run architectural discovery on that pattern.