[jboss-dev] Improving scanning performance

Chris Bredesen cbredesen at redhat.com
Fri Jun 5 12:40:08 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??

Or support listing of *packages* and not just class names...

-CB



More information about the jboss-development mailing list