My question is how to find the name or Class object of each classes that are already loaded by the class loader?
Originally posted by Nitesh Kant:
It is highly improbable that you will get a list of classes loaded by a classloader.
I reached this idea because I see that EJB containers can simply seek the session beans with no declaration but an annotation.
so I think this is a really complicated process
Originally posted by Ulf Dittmer:
You wouldn't even need to use a special classloader for those classes.
They would use an annotation processor to generate code for descriptors,remote/home interfaces.
As I understand from your reply, I have to search in file system under the classpath directories?
is there any way to check all the classes in my application programmatically?
is there any other way with higher performance to do that? I ask this because you told that they generate some other codes in run time and this enlightened my mind if I can do the same