Top Description Inners Fields Constructors Methods
com.thoughtworks.xstream.mapper

public Class CGLIBMapper

extends MapperWrapper
Class Inheritance
Imports
net.sf.cglib.proxy.Enhancer

Mapper that detects proxies generated by the CGLIB enhancer. The implementation modifies the name, so that it can identify these types. Note, that this mapper relies on the CGLIB converters:
Author
Jörg Schaible
Since
1.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final String
private static String

Constructor Summary

AccessConstructor and Description
public
public
CGLIBMapper(Mapper wrapped, String alias)

Method Summary

Modifier and TypeMethod and Description
public Class<T>
realClass(String elementName)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.realClass.

Implements com.thoughtworks.xstream.mapper.Mapper.realClass.

How a serialized class representation should be mapped back to a real class.
public String
serializedClass(Class<T> type)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass.

Implements com.thoughtworks.xstream.mapper.Mapper.serializedClass.

How a class name should be represented in its serialized form.
Inherited from com.thoughtworks.xstream.mapper.MapperWrapper:
aliasForAttributealiasForAttributealiasForSystemAttributeattributeForAliasattributeForAliasdefaultImplementationOfgetConverterFromAttributegetConverterFromAttributegetConverterFromAttributegetConverterFromItemTypegetConverterFromItemTypegetConverterFromItemTypegetFieldNameForItemTypeAndNamegetImplicitCollectionDefForFieldNamegetItemTypeForItemFieldNamegetLocalConverterisIgnoredElementisImmutableValueTypeisReferenceablelookupMapperOfTyperealMemberserializedMembershouldSerializeMember

Field Detail

aliasback to summary
private final String alias
DEFAULT_NAMING_MARKERback to summary
private static String DEFAULT_NAMING_MARKER

Constructor Detail

CGLIBMapperback to summary
public CGLIBMapper(Mapper wrapped)
CGLIBMapperback to summary
public CGLIBMapper(Mapper wrapped, String alias)

Method Detail

realClassback to summary
public Class<T> realClass(String elementName)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.realClass.

Implements com.thoughtworks.xstream.mapper.Mapper.realClass.

Doc from com.thoughtworks.xstream.mapper.Mapper.realClass.

How a serialized class representation should be mapped back to a real class.

serializedClassback to summary
public String serializedClass(Class<T> type)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass.

Implements com.thoughtworks.xstream.mapper.Mapper.serializedClass.

Doc from com.thoughtworks.xstream.mapper.Mapper.serializedClass.

How a class name should be represented in its serialized form.

com.thoughtworks.xstream.mapper back to summary

public Interface CGLIBMapper.Marker