Adrian Jackson wrote:
>
>
> Jörg Schaible-3 wrote:
>> Hi Adrian,
>>
>> Adrian Jackson wrote:
>>> I feel sure this should be possible,
>>
>> No, because the ReflectionConverter would no longer know, what to do with
>> these elements at deserialization time.
>
> I don't see how this would theoretically be any more difficult than the
> implicit array/collection/map code. In those cases, when the converter
> encounters an element that isn't explicitly defined in the parent class,
> it has an implicit mapping defined that says to store it in a given
> array/collection/map. This would just be a variation of that to store it
> in a given field directly.
>
> Still, if it's not supported, it's not supported. :) Not sure my
> xstream-fu is up to custom reflection converters, though I'll grab the
> source and see if I can spot how to do it.
Just look at the converter tutorial. All you have to do is to write/read
your field first and then call the super class.
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email