"alesj" wrote : Looking at the JBossBeanXMLMarshaller::marshal.
|
| | else if(value instanceof BeanMetaData)
| | {
| | BeanMetaData anonymousBean = (BeanMetaData) value;
| |
| I guess a recursions could be used here?
It shouldn't, unless you want to make the code less clear.
The method that receives the BeanMetaData does not deal with anonymous beans, as is the
case of the internal bean. Plus, the internal bean is much simpler, it can only have
properties.
I think that the point here is that I wrote the code converting ServiceMetaData to
BeanMetaData counting on using JBoss XB marshalling. This marshalling would validate my
bean meta data (I'm absolutly sure that this meta data I'm generating is not
correct, if I passed it along to MC it wouldn't interpret all the meta data the same
way I'm doing it).
Now, that discovered that I can't use JBoss XB marshalling:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234012
I think that converting meta data is pointless, IMO. I'm considering to get rid of
that convertion and to generate the XML directly, based on ServiceMetaData.
What do you think?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237296#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...