[jboss-dev-forums] [Design of JBossXB] - Re: JAXB annotations for OSGi Blueprint
adrian@jboss.org
do-not-reply at jboss.com
Tue Jun 30 05:15:50 EDT 2009
"thomas.diesler at jboss.com" wrote : @Alex
|
| I did as you suggested, but still get the same error
|
| https://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/trunk/blueprint/impl/src/main/java/org/jboss/osgi/blueprint/parser/xb/TBlueprint.java
JBossXB was never updated to look at fields so you need to move the @XmlElement(s) to the getter.
It should be easy though to make JBossXB look at fields.
http://anonsvn.jboss.org/repos/common/jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java
| // Create the handler
| -BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo);
| + BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo, BeanAccessMode.ALL);
|
P.S. All metadata should be Serializable
P.S.2. You should be setting the property order on the type otherwise the parsing
won't match the schema - you get a random order of elements based on what
java.lang.reflect returns.
P.S.3. We already have the metadata for the bean stuff. Look at the spring-mc-int project
which maps the spring xml to mc metadata (or speak to Ales) - no point reinventing it
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240954#4240954
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240954
More information about the jboss-dev-forums
mailing list