"[EMAIL PROTECTED]" wrote : 4) That didn't work for me. I couldn't see how to define it: | | | | ElementBinding beans = factory.bindElement(deployment, "", "beans", "beans", ArrayList.class); | | ElementBinding bean = factory.bindElement(beans, "", ??, ??, AbstractBeanMetaData.class); | | | | I also have the requirement to do polymorphism on collections, | something like: | | | <attribute name="blah"> | | <list> | | <value type="some.type">foo</value> // uses StringValueMetaData | | <depends value="SomeBean"/> // uses DependsValueMetaData | | <list> // recursion :-) | | ... | | </list> | | </list> | | </attribute> | | ElementBinding listValue = factory.bindElement(attribute, "", "list", "value", AbstractListMetaData.class); // implements java.util.List | | //What comes here??? | | |
Please, check out the value-binding testcase. It's been updated to include what you are asking for except for recursion. In other words, it's global element binding. Not yet supported. "[EMAIL PROTECTED]" wrote : | and arrays | | | <attribute name="blah"> | | <array type="someClass"> // AbstractArrayValueMetaData | | <value type="some.type">foo</value> // uses StringValueMetaData | | <depends value="SomeBean"/> // uses DependsValueMetaData | | </array> | | </attribute> | | And arrays... (not supported yet). It's not hard to add this but I would like to think more about the issues you raised and see how significant the changes I need to make in the API are. Thank you for choosing JBossXB ;) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866343#3866343 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866343 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
