[jboss-dev] Improving scanning performance
Andrew Lee Rubinger
andrew.rubinger at redhat.com
Fri Jun 5 12:59:05 EDT 2009
Andrew Lee Rubinger 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).
>
> This should be served by MDR (metadata repository) subproject of MC:
>
> http://anonsvn.jboss.org/repos/jbossas/projects/jboss-mdr/trunk/
>
> ...which as I understand is able to collect type information without the
> need for classloading (via Javassist).
>
> Something I'd discussed a bit with Ales awhile back is refactoring
> jboss-metadata to instead of using reflection a la:
>
> http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/src/main/java/org/jboss/metadata/annotation/creator/AbstractProcessor.java
>
>
> ...to instead read from MDR. I admittedly haven't yet digged too much
> here, but since you ask the question... ;)
The other important bit to mention about MDR is that it'll contain
information added by AOP, which we don't get from straight reflection.
There is currently a gap now in the object model as it doesn't account
for, for instance, annotations tacked on in *-aop.xml files.
S,
ALR
--
Andrew Lee Rubinger
Sr. Software Engineer
JBoss, a division of Red Hat, Inc.
http://exitcondition.alrubinger.com
More information about the jboss-development
mailing list