com.thoughtworks.xstream.annotations
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
public class AnnotationReflectionConverter
- extends ReflectionConverter
ReflectionConverter which uses an AnnotationProvider to marshall and unmarshall
fields based on the annotated converters.
- Author:
- Guilherme Silveira, Mauro Talevi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationReflectionConverter
public AnnotationReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
AnnotationProvider annotationProvider)
marshallField
protected void marshallField(MarshallingContext context,
java.lang.Object newObj,
java.lang.reflect.Field field)
- Overrides:
marshallField
in class AbstractReflectionConverter
unmarshallField
protected java.lang.Object unmarshallField(UnmarshallingContext context,
java.lang.Object result,
java.lang.Class type,
java.lang.reflect.Field field)
- Overrides:
unmarshallField
in class AbstractReflectionConverter
Joe Walnes, http://xstream.codehaus.org/