I am working on enterprise level web application which build on J2EE. Project contains more than 1700 classes of different modules.
Some modules are not using across the people.
How can I know which classes are not using?
We already watched JVisualVm in sampler tab. But it just shows only active classes in memory. But It is not persistent . And also it does not show not initiated classes (dormant classes)
Expected Result : List of dormant classes (Not including dependencies)
For example :
package Structure:
root
|---- com
| |---- A.java
| |---- B.java
| |---- C.java
|---- org
| |---- D.java
| |---- E.java
| |---- F.java
All this class have annotation @Path
some of them are being called from front end and some of them are not via ajax. Is there any way that we may come to know which class are being called or have a list of it?
As you can see it uses REST in java is it possible to know every time a new class is initialized by the Rest some how?