[jboss-dev-forums] [JBoss Microcontainer Development POJO Server] - Re: AS weld-int

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Nov 9 15:31:55 EST 2009


As discussed privately I have changed things a bit. Here's the current state of play.

In the deployers, I create WeldKernelControllerContexts for the MC beans if they are part of a deployment that contains weld deployments. The WeldKernelControllerContext has a reference to the BeanManager which is then used for injection from Weld to MC beans.

Only MC beans with the @WeldEnabled annotation are available for injection from MC to Weld (you can/should of course use qualifier annotations etc. in addition to this). I created a WeldEnabled annotation plugin to handle this annotation and add the beans to the McFromWeldRegistry. This means that @WeldEnabled MC beans that are not part of a deployment containing Weld beans are available for injection to Weld beans in later deployments.


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

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



More information about the jboss-dev-forums mailing list