[jboss-dev-forums] [Design the new POJO MicroContainer] - Bean definition as value add problem (JBMICROCONT-28)

alesj do-not-reply at jboss.com
Wed Aug 30 07:59:32 EDT 2006


  | <bean bean="xxx">
  |    <property name="blah">
  |       <bean bean="yyy">
  | ...
  | 

How to actually add this bean into KernelDeployment?

As I can see this is currently the only way we are setting BeanMD into KernelDeployment:

  |             AbstractKernelDeployment deployment = (AbstractKernelDeployment) parent;
  |             AbstractBeanMetaData bean = (AbstractBeanMetaData) child;
  |             List<BeanMetaDataFactory> beans = deployment.getBeanFactories();
  |             if (beans == null)
  |             {
  |                beans = new ArrayList<BeanMetaDataFactory>();
  |                deployment.setBeanFactories(beans);
  |             }
  |             beans.add(bean);
  | 



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

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



More information about the jboss-dev-forums mailing list