[jboss-dev-forums] [Design of JBossXB] - Re: Using generics info in CollectionPropertyHandler

alesj do-not-reply at jboss.com
Thu Nov 27 10:51:32 EST 2008


"alesj" wrote : 
  | I'm trying to find where I can assign actual (but wrong) type, but w/o success.
This is what I did for collection:

  |    @XmlElements
  |    ({
  |       @XmlElement(name="iface", type=SomeImpl.class),
  |       @XmlElement(name="impl", type=WrongImpl.class)
  |    })
  |    @XmlAnyElement
  |    public void setIface(List<SomeInterface> iface)
  |    {
  |       this.iface = iface;
  |    }
  | 
where WrongImpl is not SomeInterface instance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192820#4192820

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192820



More information about the jboss-dev-forums mailing list