public class CGLIBEnhancedConverter extends SerializableConverter
Enhancer. Such a proxy is recreated while
deserializing the proxy. The converter does only work, ifAbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldExceptionmapper, reflectionProvider, serializationMethodInvoker| Constructor and Description |
|---|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Deprecated.
|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoader classLoader)
Deprecated.
|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Construct a CGLIBEnhancedConverter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type.
|
protected List |
hierarchyFor(Class type) |
void |
marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
doMarshal, doMarshalConditionally, doUnmarshal, doUnmarshalConditionally, marshalUnserializableParentcanAccess, flushCache, instantiateNewInstance, marshallField, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshallFieldpublic CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoaderReference classLoaderReference)
mapper - the mapper chain instancereflectionProvider - the reflection providerclassLoaderReference - the reference to the ClassLoader of the XStream instancepublic CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoader classLoader)
CGLIBEnhancedConverter(Mapper, ReflectionProvider, ClassLoaderReference)public CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider)
CGLIBEnhancedConverter(Mapper, ReflectionProvider, ClassLoaderReference)public boolean canConvert(Class type)
ConverterMatchercanConvert in interface ConverterMatchercanConvert in class SerializableConvertertype - the Class representing the object type to be convertedpublic void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Convertermarshal in interface Convertermarshal in class AbstractReflectionConvertersource - The object to be marshalled.writer - A stream to write to.context - A context that allows nested objects to be processed by XStream.public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterunmarshal in interface Converterunmarshal in class AbstractReflectionConverterreader - The stream to read the text from.protected List hierarchyFor(Class type)
hierarchyFor in class SerializableConverterCopyright © 2004-2014 XStream. All Rights Reserved.