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 AnnotationProviderDeprecated.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 voidensureCache(Class<? extends ConverterMatcher> type) Deprecated.protected voidmarshallField(MarshallingContext context, Object newObj, Field field) Deprecated.private ConverternewInstance(Class<? extends ConverterMatcher> type) Deprecated.Instantiates a converter using its default constructor.protected ObjectunmarshallField(UnmarshallingContext context, Object result, Class type, Field field) Deprecated.Methods inherited from class com.thoughtworks.xstream.converters.reflection.ReflectionConverter
canConvertMethods 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:
marshallFieldin classAbstractReflectionConverter
-
ensureCache
Deprecated. -
unmarshallField
protected Object unmarshallField(UnmarshallingContext context, Object result, Class type, Field field) Deprecated.- Overrides:
unmarshallFieldin classAbstractReflectionConverter
-
newInstance
Deprecated.Instantiates a converter using its default constructor.- Parameters:
type- the converter type to instantiate- Returns:
- the new instance
-
ReflectionConverter