Hi Benny,
[email protected] wrote:
> Thanks for information, Jörg.
>
> So if I understood you correctly, local converters which are declared via
> annotation are not cached ?
You can only have one per field. If you register two, the second wins. The
converter instance is part of the XStream instance.
> As you pointed out, I successfully tested that if a converter has a
> constructor which takes, among other arguments, the class that should be
> converted, then XStream adds this class argument when instantiating the
> converter. This is very convenient and saves me from specifying the class
> in the @XStreamConverter annotation. Can I rely on this feature in future
> releases?
Yes. It is covered by unit tests, see
com/thoughtworks/acceptance/annotations/ParametrizedConverterTest.java.
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email