Class AnnotationReflectionConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.thoughtworks.xstream.annotations.AnnotationReflectionConverter
- All Implemented Interfaces:
Converter
,ConverterMatcher
,Caching
Deprecated.
ReflectionConverter which uses an AnnotationProvider to marshall and unmarshall fields based
on the annotated converters.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationProvider
Deprecated.private final Map
<Class<? extends ConverterMatcher>, Converter> Deprecated.Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationReflectionConverter
(Mapper mapper, ReflectionProvider reflectionProvider, AnnotationProvider annotationProvider) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureCache
(Class<? extends ConverterMatcher> type) Deprecated.protected void
marshallField
(MarshallingContext context, Object newObj, Field field) Deprecated.private Converter
newInstance
(Class<? extends ConverterMatcher> type) Deprecated.Instantiates a converter using its default constructor.protected Object
unmarshallField
(UnmarshallingContext context, Object result, Class type, Field field) Deprecated.Methods inherited from class com.thoughtworks.xstream.converters.reflection.ReflectionConverter
canConvert
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal
-
Field Details
-
annotationProvider
Deprecated. -
cachedConverters
Deprecated.
-
-
Constructor Details
-
AnnotationReflectionConverter
@Deprecated public AnnotationReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, AnnotationProvider annotationProvider) Deprecated.
-
-
Method Details
-
marshallField
Deprecated.- Overrides:
marshallField
in classAbstractReflectionConverter
-
ensureCache
Deprecated. -
unmarshallField
protected Object unmarshallField(UnmarshallingContext context, Object result, Class type, Field field) Deprecated.- Overrides:
unmarshallField
in classAbstractReflectionConverter
-
newInstance
Deprecated.Instantiates a converter using its default constructor.- Parameters:
type
- the converter type to instantiate- Returns:
- the new instance
-
ReflectionConverter