I have a java project in which many .xml files are present.
All these xml files contain many beans.
The test for unused is:
- A bean that is defined but never injected.
- A bean that is injected but is never called in the code.
- A bean that is defined but never loaded into the Spring context.
Questions
- How do I identify which bean is used or not?
- Is there a utility to do that?