public class

CGLIBEnhancedConverter

extends SerializableConverter
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
     ↳ com.thoughtworks.xstream.converters.reflection.SerializableConverter
       ↳ com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter

Class Overview

Converts a proxy created by the CGLIB Enhancer. Such a proxy is recreated while deserializing the proxy. The converter does only work, if

  • the DefaultNamingPolicy is used for the proxy's name
  • the proxy uses a factory or only one Callback is registered
  • a possible super class has at least a protected default constructor
Note, that the this converter relies on the CGLIBMapper.

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
Public Constructors
CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider)
Public Methods
boolean canConvert(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.
Protected Methods
List hierarchyFor(Class type)
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.converters.reflection.SerializableConverter
From class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
From class java.lang.Object
From interface com.thoughtworks.xstream.converters.Converter
From interface com.thoughtworks.xstream.converters.ConverterMatcher

Public Constructors

public CGLIBEnhancedConverter (Mapper mapper, ReflectionProvider reflectionProvider)

Public Methods

public boolean canConvert (Class type)

public void marshal (Object source, HierarchicalStreamWriter writer, MarshallingContext context)

Convert an object to textual data.

Parameters
source 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)

Convert textual data back into an object.

Parameters
reader The stream to read the text from.
Returns
  • The resulting object.

Protected Methods

protected List hierarchyFor (Class type)