eforge.net/projects/scannotation/">scannotation which is not actively maintained anymore. Since it has Apache License v2.0, we maintain a bug fixed and highly adoped version on our own.
The class allows you to scan an arbitrary set of "archives" for .class files. These class files are parsed to see what annotations they use. Two indexes are created. The javax, java, sun, com.sun, and javassist packages will not be scanned by default.
One is a map of annotations and what classes use those annotations. This could be used, for example, by an EJB deployer to find all the EJBs contained in the archive
Another is a mpa of classes and what annotations those classes use.
@author
Bill Burke
@version $Revision: 1 $