[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: EAR structure mock scanning

alesj do-not-reply at jboss.com
Mon May 19 14:08:37 EDT 2008


"scott.stark at jboss.org" wrote : The annotations scanning happens at the post class loader level in jbossas. Where is it happening in your new work?
  | 
Pre-real.
Obviously it must be after classloading and before real, so I chose pre-real, leaving some classloader modifications for post-cl still open.

"scott.stark at jboss.org" wrote : 
  | The annotations scanning happening at the structure phase is duplicate that cannot be reused later. It should be based on VFS/javassist usage to avoid introducing the annotations into an incorrect class loader that cannot be determined during the structure phase.
  | 
That's what I'm doing - VFS/javassist. ;-)

But like I said, structure phase is not the right place to do this, OSGi wise.
e.g. we want to scan for @Stateful, but java-ee.jar bundle is not yet installed - it will only be pulled in by my apps javax.ejb.* import - so in structure phase we won't be able to resolve any @Stateful annotation.

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

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



More information about the jboss-dev-forums mailing list