[jboss-dev] Improving scanning performance

Bill Burke bburke at redhat.com
Fri Jun 5 13:51:17 EDT 2009



Anil Saldhana wrote:
> Bill Burke wrote:
>> 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.
> This is good.
>> * 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.
> Why not just scan the jar with the presence of the file?  It will become 
> cumbersome to list all the class names if they are many classes to be 
> scanned in a jar??
> 

It would be an option, not a requirement.  If there are 100 files in 
jar, and you only need to scan 1...

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com



More information about the jboss-development mailing list