H Jörg,
> Look at the Javadoc for the XStreamConverter annotation. XStream performs a
> poor man's constructor dependency injection. The constructor with the most
> arguments is considered first, possible parameters are the current type (in
> your case List.class), some standard XStream objects and anything you provide
> as static parameter for the annotation.
> The declaration to initialize a CollectionConverter is a bit tricky though,
> because you do *not* want to consider the current type:
> @XStreamConverter(value=CollectionConverter.class, types={ArrayList.class},
> useImplicitType = false)
> Have a look at
> com.thoughtworks.acceptance.annotations.ParametrizedConverterTest for more
> examples.
OK, thanks. I was trying to do something like that, but didn't quite come up
with the right combination of parameters. The docs on annotations are rather
skimpy.
> [snip]
> > I get an exception with XStream 1.4.6.1:
> ?!? What is XStream 1.4.6.1? We release 1.4.6 and 1.4.7, but nothing
> inbetween.
Yeah, sorry, that was an OSGi bundle version. The XStream version is 1.4.6.
Dmitry