[jboss-dev-forums] [JBoss AS7 Development] - Metadata processing
Jason Greene
do-not-reply at jboss.com
Wed Sep 1 11:34:25 EDT 2010
Jason Greene [http://community.jboss.org/people/jason.greene%40jboss.com] replied to the discussion
"Metadata processing"
To view the discussion, visit: http://community.jboss.org/message/560073#560073
--------------------------------------------------------------
> Ales Justin wrote:
>
> > Annotation indexing was done by Jason.
> Where in Modules is this?
> It might be just me having trouble finding it with all this scattered git stuff ...
David is referring to a component I created awhile back:
http://github.com/jbossas/jandex http://github.com/jbossas/jandex
It's a generic, small low level component that indexes a set of classes (typically a jar) and provides an incomplete index (only from the viewpoint of those classes). It has no dependencies, and bypasses any kind of bytecode framework (javassist, asm, etc) so that it can take certain optimizations (not processing the full class, and skipping classes that don't have annotations). It also produces a space efficient index that is designed to be read quickly. It's intended to be attractive to all java projects, so that their is a strong incentive for users to index their jars, however initially we just care about fast domain performance.
This is only part of the puzzle though, as to have a complete picture the index lookups have to be aggregated to represent the class loader. That aggregation pattern would likely needed to be coordinated by an API that has the "complete" picture of module imports, deployments, etc (likely similar to AS6). The current Managed Bean impl uses it to index directly, however once the deployment repository is complete it can pull from index files that survive restart. The aggregation doesn't exist yet, and may or may not belong in modules.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560073#560073]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100901/187116e3/attachment.html
More information about the jboss-dev-forums
mailing list