[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MC + JAXB (JBossXB Builder)

adrian@jboss.org do-not-reply at jboss.com
Mon Jan 7 15:20:02 EST 2008


"adrian at jboss.org" wrote : 
  | 3) The remaining issues are the BeanFactory tests are all failing.
  | 

I fixed this by using my new improved version of the GenericBeanFactoryMetaData,
I called it GenericBeanFactoryMetaData2.

But this implementation is incomplete, it needs to add the install callbacks "etc."
into the constructed BeanMetaData:

  | 
  |    public List<BeanMetaData> getBeans()
  |    {
  |       AbstractBeanMetaData gbf = new AbstractBeanMetaData();
  |       gbf.setName(name);
  |       gbf.setAliases(aliases);
  |       gbf.setBean(GenericBeanFactory.class.getName());
  |       gbf.setMode(mode);
  |       Set<PropertyMetaData> properties = new HashSet<PropertyMetaData>();
  |       gbf.setProperties(properties);
  |       properties.add(createProperty("bean", bean));
  |       properties.add(createProperty("classLoader", classLoader));
  |       properties.add(createProperty("constructor", constructor));
  |       properties.add(createMapProperty("properties", properties));
  |       properties.add(createProperty("start", start));
  |       properties.add(createProperty("create", create));
  |       // etc.
  |       return Collections.singletonList((BeanMetaData) gbf);
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list