[jboss-dev-forums] [Design of POJO Server] - Re: Using AnnotationEnvironment in Seam

pete.muir@jboss.org do-not-reply at jboss.com
Tue Aug 19 10:44:19 EDT 2008


FYI, my plan for how to integrate this with Seam is:

* to make the deployment handlers expose metadata about the resource (file or class) they want to handle
   - an annotation on the class
   - a filename suffix they want to match against
   - whether the metadata is complete

* If any handler declares the metadata incomplete, then we must switch back to normal scanning. All handlers built into Seam will be metadata complete.

* If we are using AnnotationEnv (and equivalent for other resources), then we simply use the metadata the handler exposes to request the Set of files.

"alesj" wrote : Where I don't see what exactly does "classLoader.getResources(filename).hasMoreElements() " do/help. 

Checks to see if a .component.xml exists for this class. If it does, then the component installation is decided later, when that file is read.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171293#4171293

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171293



More information about the jboss-dev-forums mailing list