Class StdKeyDeserializers
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers
-
- All Implemented Interfaces:
KeyDeserializers
,java.io.Serializable
public class StdKeyDeserializers extends java.lang.Object implements KeyDeserializers, java.io.Serializable
Helper class used to contain simple/well-known key deserializers. Following kinds of Objects can be handled currently:- Primitive wrappers (Boolean, Byte, Char, Short, Integer, Float, Long, Double)
- Enums (usually not needed, since EnumMap doesn't call us)
Date
Calendar
UUID
Locale
- Anything with constructor that takes a single String arg (if not explicitly @JsonIgnore'd)
- Anything with
static T valueOf(String)
factory method (if not explicitly @JsonIgnore'd)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StdKeyDeserializers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyDeserializer
constructDelegatingKeyDeserializer(DeserializationConfig config, JavaType type, JsonDeserializer<?> deser)
static KeyDeserializer
constructEnumKeyDeserializer(EnumResolver enumResolver)
static KeyDeserializer
constructEnumKeyDeserializer(EnumResolver enumResolver, AnnotatedMethod factory)
KeyDeserializer
findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
static KeyDeserializer
findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
-
-
-
Method Detail
-
constructEnumKeyDeserializer
public static KeyDeserializer constructEnumKeyDeserializer(EnumResolver enumResolver)
-
constructEnumKeyDeserializer
public static KeyDeserializer constructEnumKeyDeserializer(EnumResolver enumResolver, AnnotatedMethod factory)
-
constructDelegatingKeyDeserializer
public static KeyDeserializer constructDelegatingKeyDeserializer(DeserializationConfig config, JavaType type, JsonDeserializer<?> deser)
-
findStringBasedKeyDeserializer
public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type) throws JsonMappingException
- Throws:
JsonMappingException
-
findKeyDeserializer
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc) throws JsonMappingException
- Specified by:
findKeyDeserializer
in interfaceKeyDeserializers
- Throws:
JsonMappingException
-
-