public class CGLIBEnhancedConverter extends SerializableConverter
Enhancer. Such a proxy is recreated while
deserializing the proxy. The converter does only work, ifAbstractReflectionConverter.DuplicateFieldExceptionmapper, reflectionProvider, serializationMethodInvoker| Constructor and Description |
|---|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
protected java.util.List |
hierarchyFor(java.lang.Class type) |
void |
marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
doMarshal, doMarshalConditionally, doUnmarshal, doUnmarshalConditionallyinstantiateNewInstance, marshallField, shouldUnmarshalTransientFields, unmarshallFieldpublic CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider)
public boolean canConvert(java.lang.Class type)
ConverterMatchercanConvert in interface ConverterMatchercanConvert in class SerializableConvertertype - the Class representing the object type to be convertedpublic void marshal(java.lang.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 java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterunmarshal in interface Converterunmarshal in class AbstractReflectionConverterreader - The stream to read the text from.protected java.util.List hierarchyFor(java.lang.Class type)
hierarchyFor in class SerializableConverterJoe Walnes, http://xstream.codehaus.org/