com.thoughtworks.xstream.annotations
Annotation Type XStreamConverter
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
@Documented
public @interface XStreamConverter
Annotation to declare a converter. The annotation supports additionally the injection of
various constructor arguments provided by XStream:
Mapper: The current mapper chain of the XStream
instance.
ClassLoader: The class loader used by the XStream instance to deserialize the
objects.
ReflectionProvider: The reflection
provider used by the reflection based converters of the current XStream instance.
Class: The type of the element where the annotation is declared. Note, that this
argument is not supported when using
XStreamConverters.
Note, the annotation matches a ConverterMatcher.
ConverterMatcher as well as
SingleValueConverter extend this interface. The
AnnotationMapper can only handle these two
known types.
- Author:
- Chung-Onn Cheong, Jörg Schaible
value
public abstract Class<? extends ConverterMatcher> value
Copyright © 2004-2011 XStream. All Rights Reserved.