Package com.thoughtworks.xstream.core
Class DefaultConverterLookup
java.lang.Object
com.thoughtworks.xstream.core.DefaultConverterLookup
- All Implemented Interfaces:
ConverterLookup
,ConverterRegistry
,Caching
public class DefaultConverterLookup
extends Object
implements ConverterLookup, ConverterRegistry, Caching
The default implementation of converters lookup.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultConverterLookup
(Mapper mapper) Deprecated.Constructs a DefaultConverterLookup with a provided map. -
Method Summary
Modifier and TypeMethodDescriptionvoid
lookupConverterForType
(Class type) Lookup a converter for a specific type.private Object
void
registerConverter
(Converter converter, int priority) private Object
-
Field Details
-
converters
-
typeToConverterMap
-
serializationMap
-
-
Constructor Details
-
DefaultConverterLookup
public DefaultConverterLookup() -
DefaultConverterLookup
Constructs a DefaultConverterLookup with a provided map.- Parameters:
map
- the map to use- Throws:
NullPointerException
- if map is null- Since:
- 1.4.11
-
DefaultConverterLookup
Deprecated.As of 1.3, useDefaultConverterLookup()
-
-
Method Details
-
lookupConverterForType
Description copied from interface:ConverterLookup
Lookup a converter for a specific type.This type may be any Class, including primitive and array types. It may also be null, signifying the value to be converted is a null type.
- Specified by:
lookupConverterForType
in interfaceConverterLookup
-
registerConverter
- Specified by:
registerConverter
in interfaceConverterRegistry
-
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceCaching
-
writeReplace
-
readResolve
-
DefaultConverterLookup()