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

public Class DynamicProxyMapper

extends MapperWrapper
Class Inheritance
Imports
java.lang.reflect.Proxy

Mapper for handling special cases of aliasing dynamic proxies. The alias property specifies the name an instance of a dynamic proxy should be serialized with.
Author
Joe Walnes

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DynamicProxyMapper.DynamicProxy

Place holder type used for dynamic proxies.

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
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.
public void
Inherited from com.thoughtworks.xstream.mapper.MapperWrapper:
aliasForAttributealiasForAttributealiasForSystemAttributeattributeForAliasattributeForAliasdefaultImplementationOfgetConverterFromAttributegetConverterFromAttributegetConverterFromAttributegetConverterFromItemTypegetConverterFromItemTypegetConverterFromItemTypegetFieldNameForItemTypeAndNamegetImplicitCollectionDefForFieldNamegetItemTypeForItemFieldNamegetLocalConverterisIgnoredElementisImmutableValueTypeisReferenceablelookupMapperOfTyperealMemberserializedMembershouldSerializeMember

Field Detail

aliasback to summary
private String alias

Constructor Detail

DynamicProxyMapperback to summary
public DynamicProxyMapper(Mapper wrapped)
DynamicProxyMapperback to summary
public DynamicProxyMapper(Mapper wrapped, String alias)

Method Detail

getAliasback to summary
public String getAlias()
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.

setAliasback to summary
public void setAlias(String alias)
com.thoughtworks.xstream.mapper back to summary

public Class DynamicProxyMapper.DynamicProxy

extends Object
Class Inheritance
  • java.lang.Object
  • com.thoughtworks.xstream.mapper.DynamicProxyMapper.DynamicProxy

Place holder type used for dynamic proxies.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DynamicProxyback to summary
public DynamicProxy()