com.thoughtworks.xstream.mapper
Class CachingMapper

java.lang.Object
  extended bycom.thoughtworks.xstream.mapper.MapperWrapper
      extended bycom.thoughtworks.xstream.mapper.CachingMapper
All Implemented Interfaces:
ClassMapper, Mapper

public class CachingMapper
extends MapperWrapper

Mapper that caches which names map to which classes. Prevents repetitive searching and class loading.

Author:
Joe Walnes

Nested Class Summary
 
Nested classes inherited from class com.thoughtworks.xstream.alias.ClassMapper
ClassMapper.Null
 
Constructor Summary
CachingMapper(ClassMapper wrapped)
           
 
Method Summary
 java.lang.Class lookupType(java.lang.String elementName)
           
 
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
alias, attributeForClassDefiningField, attributeForImplementationClass, defaultImplementationOf, isImmutableValueType, lookupDefaultType, lookupName, mapNameFromXML, mapNameToXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingMapper

public CachingMapper(ClassMapper wrapped)
Method Detail

lookupType

public java.lang.Class lookupType(java.lang.String elementName)
Specified by:
lookupType in interface ClassMapper
Overrides:
lookupType in class MapperWrapper


Joe Walnes, http://xstream.codehaus.org/