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 public class AnnotationReflectionConverter extends ReflectionConverter
Deprecated.As of 1.3, build intoReflectionConverter
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
Fields Modifier and Type Field Description private AnnotationProvider
annotationProvider
Deprecated.private java.util.Map<java.lang.Class<? extends ConverterMatcher>,Converter>
cachedConverters
Deprecated.-
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
-
-
Constructor Summary
Constructors Constructor Description AnnotationReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, AnnotationProvider annotationProvider)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void
ensureCache(java.lang.Class<? extends ConverterMatcher> type)
Deprecated.protected void
marshallField(MarshallingContext context, java.lang.Object newObj, java.lang.reflect.Field field)
Deprecated.private Converter
newInstance(java.lang.Class<? extends ConverterMatcher> type)
Deprecated.Instantiates a converter using its default constructor.protected java.lang.Object
unmarshallField(UnmarshallingContext context, java.lang.Object result, java.lang.Class type, java.lang.reflect.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 Detail
-
annotationProvider
private final AnnotationProvider annotationProvider
Deprecated.
-
cachedConverters
private final java.util.Map<java.lang.Class<? extends ConverterMatcher>,Converter> cachedConverters
Deprecated.
-
-
Constructor Detail
-
AnnotationReflectionConverter
@Deprecated public AnnotationReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, AnnotationProvider annotationProvider)
Deprecated.
-
-
Method Detail
-
marshallField
protected void marshallField(MarshallingContext context, java.lang.Object newObj, java.lang.reflect.Field field)
Deprecated.- Overrides:
marshallField
in classAbstractReflectionConverter
-
ensureCache
private void ensureCache(java.lang.Class<? extends ConverterMatcher> type)
Deprecated.
-
unmarshallField
protected java.lang.Object unmarshallField(UnmarshallingContext context, java.lang.Object result, java.lang.Class type, java.lang.reflect.Field field)
Deprecated.- Overrides:
unmarshallField
in classAbstractReflectionConverter
-
newInstance
private Converter newInstance(java.lang.Class<? extends ConverterMatcher> type)
Deprecated.Instantiates a converter using its default constructor.- Parameters:
type
- the converter type to instantiate- Returns:
- the new instance
-
-