You can explore a pattern in the code architecture by reviewing
a topic diagram, which is a UML diagram of the classes and interfaces that
constitute the underlying pattern. By reviewing the patterns, you gain an
understanding of how an application is designed.
Before you explore a pattern, you must run architectural discovery
to find the classes and interfaces that constitute the underlying pattern.
Each pattern that architectural discovery detects is displayed in a topic
diagram.
To explore a pattern in the architecture of existing code:
- In the Diagram Navigator view under Architectural
Discovery, expand the pattern on which you ran architectural discovery to
show the topic diagrams for it. The number of topic diagrams created for a
pattern appears in brackets, as illustrated here:
.
- Expand the pattern to see the list of topic diagrams for it.
- Double-click a topic diagram to open it. In the topic
diagram you can view the selected pattern and relationships between Java elements.
For detailed information on working with topic diagrams, see "Exploring Java
relationships based on queries."
- To explore an element in the topic diagram in detail, right-click
the diagram element and click Explore in Browse Diagram. For
more information on working with browse diagrams, see "Exploring elements
and relationships from existing browse diagrams."