Re: How to get a list of loaded classes.
Friday, June 15, 2001 03:15 AM
I'm not aware about any method to get the list of all loaded classes or all ClassLoaders (that means all classes extending from ClassLoader).
I think: if a pluggable application is made able to lookup all classes (then to instantiate, and invoke methods) it would compromise security of other running apps in the same virtual machine, so I don't think it's possible, due to security limitation.
Of course, if you define your own ClassLoader, it can do whatever you want (even to list everything) but just with its loaded classes.