URL[] urls = getScanningUrls();
for (URL u : urls)
{
logger.debug("Scanning archive: " + u);
}
AnnotationDB db = new AnnotationDB();
String[] ignoredPackages = {"org.jboss.resteasy.plugins", "org.jboss.resteasy.annotations", "org.jboss.resteasy.client", "org.jboss.resteasy.specimpl", "org.jboss.resteasy.core", "org.jboss.resteasy.spi", "org.jboss.resteasy.util", "org.jboss.resteasy.mock", "javax.ws.rs"};
db.setIgnoredPackages(ignoredPackages);
// only index class annotations as we don't want sub-resources being picked up in the scan
db.setScanClassAnnotations(true);
db.setScanFieldAnnotations(false);
db.setScanMethodAnnotations(false);
db.setScanParameterAnnotations(false);
try
{
db.scanArchives(urls);
try
{
db.crossReferenceImplementedInterfaces();
db.crossReferenceMetaAnnotations();
}
catch (AnnotationDB.CrossReferenceException ignored)
{
}