public class BeanDeserializerFactory extends BasicDeserializerFactory implements java.io.Serializable
Instances of this class are fully immutable as all configuration is done by using "fluent factories" (methods that construct new factory instances with different configuration, instead of modifying instance).
Modifier and Type | Field and Description |
---|---|
static BeanDeserializerFactory |
instance
Globally shareable thread-safe instance which has no additional custom deserializers
registered
|
Constructor and Description |
---|
BeanDeserializerFactory(DeserializerFactoryConfig config) |
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<java.lang.Object> |
buildBeanDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method that is to actually build a bean deserializer instance.
|
JsonDeserializer<java.lang.Object> |
buildThrowableDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
JsonDeserializer<java.lang.Object> |
createBeanDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method that
DeserializerCache s call to create a new
deserializer for types other than Collections, Maps, arrays and
enums. |
JsonDeserializer<java.lang.Object> |
createBuilderBasedDeserializer(DeserializationContext ctxt,
JavaType valueType,
BeanDescription beanDesc,
java.lang.Class<?> builderClass)
Method called to create a deserializer that will use specified Builder
class for building value instances.
|
DeserializerFactory |
withConfig(DeserializerFactoryConfig config)
Method used by module registration functionality, to construct a new bean
deserializer factory
with different configuration settings.
|
_valueInstantiatorInstance, createArrayDeserializer, createCollectionDeserializer, createCollectionLikeDeserializer, createEnumDeserializer, createKeyDeserializer, createMapDeserializer, createMapLikeDeserializer, createReferenceDeserializer, createTreeDeserializer, findDefaultDeserializer, findPropertyContentTypeDeserializer, findPropertyTypeDeserializer, findTypeDeserializer, findValueInstantiator, getFactoryConfig, mapAbstractType, withAbstractTypeResolver, withAdditionalDeserializers, withAdditionalKeyDeserializers, withDeserializerModifier, withValueInstantiators
public static final BeanDeserializerFactory instance
public BeanDeserializerFactory(DeserializerFactoryConfig config)
public DeserializerFactory withConfig(DeserializerFactoryConfig config)
public JsonDeserializer<java.lang.Object> createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
DeserializerCache
s call to create a new
deserializer for types other than Collections, Maps, arrays and
enums.createBeanDeserializer
in class DeserializerFactory
type
- Type to be deserializedJsonMappingException
public JsonDeserializer<java.lang.Object> createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription beanDesc, java.lang.Class<?> builderClass) throws JsonMappingException
DeserializerFactory
createBuilderBasedDeserializer
in class DeserializerFactory
JsonMappingException
public JsonDeserializer<java.lang.Object> buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingException
public JsonDeserializer<java.lang.Object> buildThrowableDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingException
Copyright © 2010 - 2020 Adobe. All Rights Reserved