JohnBaker FindUsages
Spring Support for Find usages
Intro
The Spring support will
- Plug into the Java find usages to show Spring beans definitions which refer to Java classes.
- (the find usages result will show those configuration files and java files where the bean is used)
- Also, the Find Usages action will be available for bean definitions as well, to show beans used by other beans (for example in aliases or as arguments to constructors and properties).
- select a dispatcher servlet config file and right click on a Bean definition in the Navigator
Screen shots (feature under construction)
Find Usages action will be available for bean definitions
[[File:]]
Plug into the Java find usages to show Spring beans definitions which refer to Java classes
[[File:]]
[[File:]]
[[File:]]
Use Cases
A.
- In the Project window, select Bean class (java source file) , right-click and choose Find Usages
- Result: A Find Usages dialog opens with options (Find Usages, Find All Subtypes, Find Direct SubTypes)
- Clicking the Find button
- Result: the Usages pane appears in the Output area with a tree view of files that use the Bean (both Java source and dispatcher Servlet config files)
B.
- From a Spring project, open a Java source file. In the Java editor , select a class, right-click and choose Find Usages
- Result: A Find Usages dialog opens with options (Find Usages, Find All Subtypes, Find Direct SubTypes)
- Clicking the Find button
- Result: the Usages pane appears in the Output area with a tree view of files that use the Bean (both Java source and dispatcher Servlet config files)
C.
- In the Project window, select a dispatcher servlet configuration file
- With the Navigator open, right-click on a Bean definition and choose Find Usages
- Result: The Usages pane appears in the Output area with a tree view of files that contain those beans in the bean definition

