On 14 February 2012 19:41, Jörg Schaible <[email protected]> wrote:

> <snip>

So, you might say, that your collections do not have additional members.
> Then you're free to register an own Collection converter that overloads the
> canConvert method and returns true for every type that is assignable to
> Collection. The situation for Iterable is similar, but you will also have
> to
> overload the marshal/unmarshal methods to read/write the class attribute
> for
> the concrete type and to initiate the loop.
>
>
We do currently register our own converters for Iterable, and that's fine
for our particular case (ignoring implementation specifics like you
described). However, I don't think there's any way to register a converter
to be picked up when using @XStreamImplicit. Please correct me if I'm
wrong, if there's a way I can implement a converter which is invoked at the
correct time, that would be great. Or even if I had to declare the
annotation as something like
@XStreamImplicit(converter=MyIterableConverter.class) that would be fine
too.

Does such a feature exist currently?

Kind regards,
Graham

Reply via email to