[jboss-dev-forums] [Design of JBossXB] - Re: Collections with interfaces
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Oct 23 20:24:15 EDT 2007
I needed to add an elementType to JBossXmlCollection to allow for the specification of the collection element type for collections of unparameterized interfaces like:
| @XmlType(name="service-refType")
| public class JBossServiceReferencesMetaData
| extends AbstractMappedMetaData<IServiceReferenceMetaData>
| implements IServiceReferencesMetaData
| {
| ...
|
so one can define both the collection class, and its concrete element type:
| @JBossXmlCollection(type=JBossServiceReferencesMetaData.class, elementType=JBossServiceReferenceMetaData.class)
| @XmlElement(name="service-ref")
| public void setServiceReferences(IServiceReferencesMetaData serviceReferences)
| {
| this.serviceReferences = (JBossServiceReferencesMetaData) serviceReferences;
| }
|
Can you check its use in the JBossXBNoSchemaBuilder? There was one location where I was not clear on whether this should override the localPropertyType.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098091#4098091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098091
More information about the jboss-dev-forums
mailing list