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??? | and arrays | <attribute name="blah"> | <array type="someClass"> // AbstractArrayValueMetaData | <value type="some.type">foo</value> // uses StringValueMetaData | <depends value="SomeBean"/> // uses DependsValueMetaData | </array> | </attribute> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866234#3866234 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866234 ------------------------------------------------------- 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
