The following is an overview of the annotation scanning code used in Apache TomEE cleaned up and as a potential commons project and independently reusable library.
Source code here: https://svn.apache.org/repos/asf/commons/sandbox/classscan/branches/commons-finder/
public AnnotationFinder(Archive archive)
Basic constructor. The Parser or some ParserFactory should be added.