[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 13:16:00 EST 2008


"alesj" wrote : "scott.stark at jboss.org" wrote : 2.0.0.CR5 and trunk.
  | OK, I'll remove the jbossxb-builder dependency in MC, and updated jbossxb version to 2.0.0.CR5.

I've just done that. But there are a number of problems still to resolve.

1) I don't know why but there is a change in the way JAXB was handling elements.
e.g. I had to reinstate the "bean" element in BeanSchemaBindingHelper.configureValueBindings()
But the same issue is broken for PolicySchemaBindingHelper in that it doesn't
recognise the nested value in the BindingComplexValue test.

2) The new JAXB wasn't even working. I've udpated some of the none xml properties
e.g. getChildren() on most of the metadata to mark it @XmlTransient.
It can now actually build the schema ;-)

There was some other fixes as well.

3) The remaining issues are the BeanFactory tests are all failing.
And the way I did MapMetaData in the jbossxb is wrong.
In the JBossXB tests I implemented it as a Set
but this is obviously wrong, since it is a Map not a Set.

The current way to markup a Map is to use XmlAdapter
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/common/jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/javatypeadapter/support/
But it would be better if we had native support like we do for collections.


Off Topic. I'm seeing some other tests. e.g. the value-factory tests
are failing because of AccessControlException when trying to get the classloader.

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

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



More information about the jboss-dev-forums mailing list