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

kabir.khan@jboss.com do-not-reply at jboss.com
Fri Oct 23 12:07:14 EDT 2009


"kabir.khan at jboss.com" wrote : 
  | b) How do I make sure that WeldKernelControllerContexts are deployed instead of KernelControllerContexts? Replace BeanMetaDataDeployer with something else?
  | 
Just noting down an idea before I finish for the weekend

Maybe I need similar deployers to KernelDeploymentDeployer/BeanMetaDataDeployer that come before those. A WeldKernelDeploymentDeployer could kick in if the MC beans are part of a Weld deployment, it could remove the KernelDeployment attachment, then wrap it as a WeldKernelDeployment attachment, with a DeploymentVisitor to create WeldBeanMetaDatas which would be picked up by a WeldBeanMetaDataDeployer which would deploy WeldKernelControllerContexts. That would cover the MC beans that are part of a Weld deployment, the question is what about the MC beans that are not part of a weld deployment? Only the WeldKernelControllerContexts are currently registered for pushing to Weld for MC->Weld injection.



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

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



More information about the jboss-dev-forums mailing list