I've completed the testing of the JBossXB parser using JAXB annotations.
This should remove a lot of code from the MIcrocontainer project, in particular most of
the code that sets up the xml parsing.
It also allows for much cleaner implementations, e.g. the javabean parsing
https://svn.jboss.org/repos/common/jbossxb-builder/trunk/src/test/java/or...
can now be implemented as an annotated factory
The MC xml only requires three additional classes to parse the "simple types"
that don't have property editors (cardinality, controllermode and controllerstate)
e.g.
https://svn.jboss.org/repos/common/jbossxb-builder/trunk/src/test/java/or...
the rest is just annotations, even the polymorphism :-)
https://svn.jboss.org/repos/common/jbossxb-builder/trunk/src/test/java/or...
I'd also suggest we reimplement the GenericBeanFactory to be a BeanMetaDataFactory
since it makes the implemetation much cleaner:
https://svn.jboss.org/repos/common/jbossxb-builder/trunk/src/test/java/or...
Before this can be done, it needs a release of the jbossxb-builder project
and I need to write some docs on how to use the additional annotations
that are JBossXB specific
https://svn.jboss.org/repos/common/jbossxb-builder/trunk/src/main/java/or...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048680#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...