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

alesj do-not-reply at jboss.com
Mon Jan 7 15:55:37 EST 2008


"alesj" wrote : 
  | I think it's missing the features of MetaDataVisitorNode. ;-)
Or not. :-)

  |    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));
  |       gbf.setDemands(demands);
  |       gbf.setDepends(depends);
  |       gbf.setSupplies(supplies);
  |       gbf.setInstalls(installs);
  |       gbf.setUninstalls(uninstalls);
  |       gbf.setInstallCallbacks(installCallbacks);
  |       gbf.setUninstallCallbacks(uninstallCallbacks);
  |       return Collections.singletonList((BeanMetaData) gbf);
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list