Class SimpleKeyDeserializers
- java.lang.Object
-
- com.fasterxml.jackson.databind.module.SimpleKeyDeserializers
-
- All Implemented Interfaces:
KeyDeserializers
,java.io.Serializable
public class SimpleKeyDeserializers extends java.lang.Object implements KeyDeserializers, java.io.Serializable
Simple implementationKeyDeserializers
which allows registration of deserializers based on raw (type erased class). It can work well for basic bean and scalar type deserializers, but is not a good fit for handling generic types (likeMap
s andCollection
s or array types).Unlike
SimpleSerializers
, this class does not currently support generic mappings; all mappings must be to exact declared deserialization type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleKeyDeserializers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleKeyDeserializers
addDeserializer(java.lang.Class<?> forClass, KeyDeserializer deser)
KeyDeserializer
findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
-
-
-
Method Detail
-
addDeserializer
public SimpleKeyDeserializers addDeserializer(java.lang.Class<?> forClass, KeyDeserializer deser)
-
findKeyDeserializer
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
- Specified by:
findKeyDeserializer
in interfaceKeyDeserializers
-
-