public class DefaultConverterLookup extends java.lang.Object implements ConverterLookup, ConverterRegistry, Caching
| Modifier and Type | Field and Description |
|---|---|
private PrioritizedList |
converters |
private java.util.Map |
serializationMap |
private java.util.Map |
typeToConverterMap |
| Constructor and Description |
|---|
DefaultConverterLookup() |
DefaultConverterLookup(java.util.Map map)
Constructs a DefaultConverterLookup with a provided map.
|
DefaultConverterLookup(Mapper mapper)
Deprecated.
As of 1.3, use
DefaultConverterLookup() |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
Converter |
lookupConverterForType(java.lang.Class type)
Lookup a converter for a specific type.
|
private java.lang.Object |
readResolve() |
void |
registerConverter(Converter converter,
int priority) |
private java.lang.Object |
writeReplace() |
private final PrioritizedList converters
private transient java.util.Map typeToConverterMap
private java.util.Map serializationMap
public DefaultConverterLookup()
public DefaultConverterLookup(java.util.Map map)
map - the map to usejava.lang.NullPointerException - if map is nullpublic DefaultConverterLookup(Mapper mapper)
DefaultConverterLookup()public Converter lookupConverterForType(java.lang.Class type)
ConverterLookupThis 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.
lookupConverterForType in interface ConverterLookuppublic void registerConverter(Converter converter, int priority)
registerConverter in interface ConverterRegistrypublic void flushCache()
flushCache in interface Cachingprivate java.lang.Object writeReplace()
private java.lang.Object readResolve()