Is there any way to judge whether a class has been loaded into jvm?
In my opinion,I think the way is findClass
,is that right?
OK, so I have not done this. But it seems that it would be possible via getAllLoadedClasses()
in the Instrumentation API.
But then you would still need to start the JVM with your agent
.