JsonDeserializer for specified type, or null to indicate that it
does not support handling of the type. In latter case, further calls can be made
for other providers; in former case returned deserializer is used for handling of
instances of specified type.
It is strongly recommended that implementations always extend Deserializers.
and NOT just implement Deserializers.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | Deserializers.Base
Basic |
| Modifier and Type | Method and Description |
|---|---|
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of array instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Method called to locate serializer for specified array type. |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itBean type to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc)Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node) |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of collection instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Method called to locate serializer for specified |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Method called to locate serializer for specified
"Collection-like" type (one that acts
like |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc)Method called to locate deserializer for specified |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, KeyDeserializer Key deserializer use, if it is defined via annotations or other configuration;
null if default key deserializer for key type can be used. keyDeserializer, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Method called to locate deserializer for specified |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itType of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, KeyDeserializer Key deserializer use, if it is defined via annotations or other configuration;
null if default key deserializer for key type can be used. keyDeserializer, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Method called to locate serializer for specified
"Map-like" type (one that acts
like |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itSpecific referential type to deserialize refType, DeserializationConfig Configuration in effect config, BeanDescription Definition of the reference type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer Possible type deserializer for referenced value contentTypeDeserializer, JsonDeserializer<?> Value deserializer to use for referenced value, if indicated
by property annotation contentDeserializer)Method called to locate deserializer for value that is of referential type, |
| public JsonDeserializer | Returns: Deserializer to use for the type; or null if this provider does not know how to construct itSpecific type of JSON tree nodes to deserialize
(subtype of nodeType, DeserializationConfig com.)Configuration in effect config, BeanDescription beanDesc)Method called to locate deserializer for specified JSON tree node type. |
| public default boolean | hasDeserializerFor(DeserializationConfig config, Class<?> valueType)
Method that may be called to check whether this deserializer provider would provide deserializer for values of given type, without attempting to construct (and possibly fail in some cases) actual deserializer. |
| findArrayDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate serializer for specified array type. Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findBeanDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)
| |
| findCollectionDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate serializer for specified Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findCollectionLikeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate serializer for specified
"Collection-like" type (one that acts
like Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findEnumDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate deserializer for specified
| |
| findMapDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate deserializer for specified Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
Similarly, a
| |
| findMapLikeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate serializer for specified
"Map-like" type (one that acts
like Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
Similarly, a
| |
| findReferenceDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate deserializer for value that is of referential type,
| |
| findTreeNodeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method called to locate deserializer for specified JSON tree node type.
| |
| hasDeserializerFor | back to summary |
|---|---|
| public default boolean hasDeserializerFor(DeserializationConfig config, Class<?> valueType) Method that may be called to check whether this deserializer provider would provide deserializer for values of given type, without attempting to construct (and possibly fail in some cases) actual deserializer. Mostly needed to support validation of polymorphic type ids. Note implementations should take care NOT to claim supporting types that they do not recognize as this could to incorrect assumption of safe support by caller. Method added in Jackson 2.13 now that Java 8 default implementations are available for use with interface definitions.
| |
Deserializers implementation that implements all methods but provides
no deserializers. Its main purpose is to serve as a base class so that
sub-classes only need to override methods they need, as most of the time some
of methods are not needed (especially enumeration and array deserializers are
very rarely overridden).
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonDeserializer | findArrayDeserializer(ArrayType
Type of array instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Implements com. |
| public JsonDeserializer | findBeanDeserializer(JavaType
Bean type to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc)Implements com. |
| public JsonDeserializer | findCollectionDeserializer(CollectionType
Type of collection instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Implements com. java. (List, Set etc) type.
|
| public JsonDeserializer | findCollectionLikeDeserializer(CollectionLikeType
Type of instances to deserialize type, DeserializationConfig Configuration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Implements com. java. but does not implement it).
|
| public JsonDeserializer | findEnumDeserializer(Class<?>
Type of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc)Implements com. java. type.
|
| public JsonDeserializer | findMapDeserializer(MapType
Type of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, KeyDeserializer Key deserializer use, if it is defined via annotations or other configuration;
null if default key deserializer for key type can be used. keyDeserializer, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Implements com. java. type.
|
| public JsonDeserializer | findMapLikeDeserializer(MapLikeType
Type of type, DeserializationConfig java. instances to deserializeConfiguration in effect config, BeanDescription Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializers beanDesc, KeyDeserializer Key deserializer use, if it is defined via annotations or other configuration;
null if default key deserializer for key type can be used. keyDeserializer, TypeDeserializer If element type needs polymorphic type handling, this is
the type information deserializer to use; should usually be used as is when constructing
array deserializer. elementTypeDeserializer, JsonDeserializer<?> Deserializer to use for elements, if explicitly defined (by using
annotations, for exmple). May be null, in which case it should be resolved here (or using
elementDeserializer)ResolvableDeserializer callback)Implements com. java. but does not implement it).
|
| public JsonDeserializer | findReferenceDeserializer(ReferenceType
Specific referential type to deserialize refType, DeserializationConfig Configuration in effect config, BeanDescription Definition of the reference type that contains class annotations and
other information typically needed for building deserializers beanDesc, TypeDeserializer Possible type deserializer for referenced value contentTypeDeserializer, JsonDeserializer<?> Value deserializer to use for referenced value, if indicated
by property annotation contentDeserializer)Implements com. |
| public JsonDeserializer | findTreeNodeDeserializer(Class<? extends JsonNode>
Specific type of JSON tree nodes to deserialize
(subtype of nodeType, DeserializationConfig com.)Configuration in effect config, BeanDescription beanDesc)Implements com. |
| Base | back to summary |
|---|---|
| public Base() | |
| findArrayDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate serializer for specified array type. Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findBeanDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)
| |
| findCollectionDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate serializer for specified Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findCollectionLikeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate serializer for specified
"Collection-like" type (one that acts
like Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
| |
| findEnumDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate deserializer for specified
| |
| findMapDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate deserializer for specified Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
Similarly, a
| |
| findMapLikeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate serializer for specified
"Map-like" type (one that acts
like Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).
Similarly, a
| |
| findReferenceDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate deserializer for value that is of referential type,
| |
| findTreeNodeDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements com. Doc from com. Method called to locate deserializer for specified JSON tree node type.
| |