[Simple-support] Providing Extra Type Information to the Serialization Engine
Brought to you by:
niallg
|
From: Azubuko O. <buk...@gm...> - 2011-05-13 11:55:41
|
Hello,
If I have a generic class like:
public class ItemList<T> {
@ElementList(inline = true, required = false)
private List<T> items = new ArrayList<T>();
}
And then I have subclasses of this like AList extends ItemList<A> and BList
extends ItemList<B> ... Simple will fail to serialize such classes because
it can't determine the type of the generic property. Is there perhaps a
mechanism so that I might be able to provide this information to the engine
somehow?
Thanks
|