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

public Class CachingMapper

extends MapperWrapper
implements Caching
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.core.Caching
Imports
java.util.Collections, .HashMap, .Map, com.thoughtworks.xstream.XStreamException, com.thoughtworks.xstream.core.Caching, com.thoughtworks.xstream.security.ForbiddenClassException

Mapper that caches which names map to which classes. Prevents repetitive searching and class loading.
Authors
Joe Walnes, Jörg Schaible

Field Summary

Modifier and TypeField and Description
private transient Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Field Detail

realClassCacheback to summary
private transient Map<K, V> realClassCache

Constructor Detail

CachingMapperback to summary
public CachingMapper(Mapper wrapped)

Method Detail

flushCacheback to summary
public void flushCache()

Implements com.thoughtworks.xstream.core.Caching.flushCache.

readResolveback to summary
private Object readResolve()
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.