how to search through all classes loaded?

View: New views
1 Messages — Rating Filter:   Alert me  

how to search through all classes loaded?

by is_maximum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all

I am going to create an annotation and the developer can put it on a class. then I have a manager class in which I load those metadata for the first time to be used later.

earlier I used to have a XML file so the developer should specify the classes that are marked with the annotation and the manager class will read that file. Now I want to search through all the loaded classes and see if any of them are annotated with my annotation, so I can obtain the metadata.

My question is how to find the name or Class object of each classes that are already loaded by the class loader?

thanks in advance
-- Regards
Mohammad Norouzi
Help each other to reach the future faster
Pixelshot Photoblog
Brainable Blog