[jboss-dev] Improving scanning performance
Bill Burke
bburke at redhat.com
Fri Jun 5 09:28:39 EDT 2009
I suggested this a year or two ago:
* You should have a AnnotationScanner deployer that scans jars for
annotations and puts an annotation database somewhere in memory that
other deployers can reference. (This might already exist, I don't know).
* If a file META-INF/no.scan exists in a jar, then don't scan the file.
This allows libraries to exclude themselves from scanning.
* If a file META-INF/scan.only exists it will contain a newline
delimited list of class names to scan. Only scan those class names.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the jboss-development
mailing list