Package com.thoughtworks.xstream.mapper
Class CachingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.CachingMapper
Mapper that caches which names map to which classes. Prevents repetitive searching and class loading.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate ObjectHow a serialized class representation should be mapped back to a real class.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, serializedClass, serializedMember, shouldSerializeMember
-
Field Details
-
realClassCache
-
-
Constructor Details
-
CachingMapper
-
-
Method Details
-
realClass
Description copied from interface:MapperHow a serialized class representation should be mapped back to a real class.- Specified by:
realClassin interfaceMapper- Overrides:
realClassin classMapperWrapper
-
flushCache
public void flushCache()- Specified by:
flushCachein interfaceCaching
-
readResolve
-