com.thoughtworks.xstream.mapper
Class CachingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.CachingMapper
- All Implemented Interfaces:
- Caching, Mapper
public class CachingMapper
- extends MapperWrapper
- implements Caching
Mapper that caches which names map to which classes. Prevents repetitive searching and class loading.
- Author:
- Joe Walnes, Jörg Schaible
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, isImmutableValueType, lookupMapperOfType, realMember, serializedClass, serializedMember, shouldSerializeMember |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingMapper
public CachingMapper(Mapper wrapped)
realClass
public Class realClass(String elementName)
- Description copied from interface:
Mapper
- How a serialized class representation should be mapped back to a real class.
- Specified by:
realClass
in interface Mapper
- Overrides:
realClass
in class MapperWrapper
flushCache
public void flushCache()
- Specified by:
flushCache
in interface Caching
Copyright © 2004-2014 XStream. All Rights Reserved.