Package com.thoughtworks.xstream.mapper
Class CGLIBMapper
- java.lang.Object
-
- com.thoughtworks.xstream.mapper.MapperWrapper
-
- com.thoughtworks.xstream.mapper.CGLIBMapper
-
- All Implemented Interfaces:
Mapper
public class CGLIBMapper extends MapperWrapper
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:- CGLIBEnhancedConverter
- Since:
- 1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCGLIBMapper.Marker-
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringaliasprivate static java.lang.StringDEFAULT_NAMING_MARKER
-
Constructor Summary
Constructors Constructor Description CGLIBMapper(Mapper wrapped)CGLIBMapper(Mapper wrapped, java.lang.String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassrealClass(java.lang.String elementName)How a serialized class representation should be mapped back to a real class.java.lang.StringserializedClass(java.lang.Class type)How a class name should be represented in its serialized form.-
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
-
-
-
-
Method Detail
-
serializedClass
public java.lang.String serializedClass(java.lang.Class type)
Description copied from interface:MapperHow a class name should be represented in its serialized form.- Specified by:
serializedClassin interfaceMapper- Overrides:
serializedClassin classMapperWrapper
-
realClass
public java.lang.Class realClass(java.lang.String elementName)
Description copied from interface:MapperHow a serialized class representation should be mapped back to a real class.- Specified by:
realClassin interfaceMapper- Overrides:
realClassin classMapperWrapper
-
-