public class BeanDeserializerFactory extends BasicDeserializerFactory implements 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).
BasicDeserializerFactory.ContainerDefaultMappings| Modifier and Type | Field and Description | 
|---|---|
| static BeanDeserializerFactory | instanceGlobally shareable thread-safe instance which has no additional custom deserializers
 registered | 
_factoryConfig, UNWRAPPED_CREATOR_PARAM_NAMENO_DESERIALIZERS| Constructor and Description | 
|---|
| BeanDeserializerFactory(DeserializerFactoryConfig config) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | _validateSubType(DeserializationContext ctxt,
                JavaType type,
                BeanDescription beanDesc) | 
| protected void | addBackReferenceProperties(DeserializationContext ctxt,
                          BeanDescription beanDesc,
                          BeanDeserializerBuilder builder)Method that will find if bean has any managed- or back-reference properties,
 and if so add them to bean, to be linked during resolution phase. | 
| protected void | addBeanProps(DeserializationContext ctxt,
            BeanDescription beanDesc,
            BeanDeserializerBuilder builder)Method called to figure out settable properties for the
 bean deserializer to use. | 
| protected void | addInjectables(DeserializationContext ctxt,
              BeanDescription beanDesc,
              BeanDeserializerBuilder builder)Method called locate all members used for value injection (if any),
 constructor  ValueInjectorinstances, and add them to builder. | 
| protected void | addObjectIdReader(DeserializationContext ctxt,
                 BeanDescription beanDesc,
                 BeanDeserializerBuilder builder) | 
| protected void | addReferenceProperties(DeserializationContext ctxt,
                      BeanDescription beanDesc,
                      BeanDeserializerBuilder builder)Deprecated.  | 
| JsonDeserializer<Object> | buildBeanDeserializer(DeserializationContext ctxt,
                     JavaType type,
                     BeanDescription beanDesc)Method that is to actually build a bean deserializer instance. | 
| protected JsonDeserializer<Object> | buildBuilderBasedDeserializer(DeserializationContext ctxt,
                             JavaType valueType,
                             BeanDescription builderDesc)Method for constructing a bean deserializer that uses specified
 intermediate Builder for binding data, and construction of the
 value instance. | 
| JsonDeserializer<Object> | buildThrowableDeserializer(DeserializationContext ctxt,
                          JavaType type,
                          BeanDescription beanDesc) | 
| protected SettableAnyProperty | constructAnySetter(DeserializationContext ctxt,
                  BeanDescription beanDesc,
                  AnnotatedMember mutator)Method called to construct fallback  SettableAnyPropertyfor handling unknown bean properties, given a method that
 has been designated as such setter. | 
| protected BeanDeserializerBuilder | constructBeanDeserializerBuilder(DeserializationContext ctxt,
                                BeanDescription beanDesc)Overridable method that constructs a  BeanDeserializerBuilderwhich is used to accumulate information needed to create deserializer
 instance. | 
| protected SettableBeanProperty | constructSettableProperty(DeserializationContext ctxt,
                         BeanDescription beanDesc,
                         BeanPropertyDefinition propDef,
                         JavaType propType0)Method that will construct a regular bean property setter using
 the given setter method. | 
| protected SettableBeanProperty | constructSetterlessProperty(DeserializationContext ctxt,
                           BeanDescription beanDesc,
                           BeanPropertyDefinition propDef)Method that will construct a regular bean property setter using
 the given setter method. | 
| JsonDeserializer<Object> | createBeanDeserializer(DeserializationContext ctxt,
                      JavaType type,
                      BeanDescription beanDesc)Method that  DeserializerCaches call to create a new
 deserializer for types other than Collections, Maps, arrays and
 enums. | 
| JsonDeserializer<Object> | createBuilderBasedDeserializer(DeserializationContext ctxt,
                              JavaType valueType,
                              BeanDescription beanDesc,
                              Class<?> builderClass)Method called to create a deserializer that will use specified Builder
 class for building value instances. | 
| protected List<BeanPropertyDefinition> | filterBeanProps(DeserializationContext ctxt,
               BeanDescription beanDesc,
               BeanDeserializerBuilder builder,
               List<BeanPropertyDefinition> propDefsIn,
               Set<String> ignored)Helper method called to filter out explicit ignored properties,
 as well as properties that have "ignorable types". | 
| protected JsonDeserializer<?> | findStdDeserializer(DeserializationContext ctxt,
                   JavaType type,
                   BeanDescription beanDesc)Method called by  BeanDeserializerFactoryto see if there might be a standard
 deserializer registered for given type. | 
| protected boolean | isIgnorableType(DeserializationConfig config,
               BeanPropertyDefinition propDef,
               Class<?> type,
               Map<Class<?>,Boolean> ignoredTypes)Helper method that will check whether given raw type is marked as always ignorable
 (for purpose of ignoring properties with type) | 
| protected boolean | isPotentialBeanType(Class<?> type)Helper method used to skip processing for types that we know
 cannot be (i.e. | 
| protected JavaType | materializeAbstractType(DeserializationContext ctxt,
                       JavaType type,
                       BeanDescription beanDesc) | 
| DeserializerFactory | withConfig(DeserializerFactoryConfig config)Method used by module registration functionality, to construct a new bean
 deserializer factory
 with different configuration settings. | 
_addDeserializerConstructors, _addDeserializerFactoryMethods, _addExplicitAnyCreator, _addExplicitDelegatingCreator, _addExplicitPropertyCreator, _constructDefaultValueInstantiator, _findCreatorsFromProperties, _findCustomArrayDeserializer, _findCustomBeanDeserializer, _findCustomCollectionDeserializer, _findCustomCollectionLikeDeserializer, _findCustomEnumDeserializer, _findCustomMapDeserializer, _findCustomMapLikeDeserializer, _findCustomReferenceDeserializer, _findCustomTreeNodeDeserializer, _findJsonValueFor, _findRemappedType, _getSetterInfo, _handleSingleArgumentCreator, _hasCreatorAnnotation, _mapAbstractCollectionType, _mapAbstractMapType, _reportUnwrappedCreatorProperty, _valueInstantiatorInstance, constructCreatorProperty, constructEnumResolver, createArrayDeserializer, createCollectionDeserializer, createCollectionLikeDeserializer, createEnumDeserializer, createKeyDeserializer, createMapDeserializer, createMapLikeDeserializer, createReferenceDeserializer, createTreeDeserializer, findContentDeserializerFromAnnotation, findDefaultDeserializer, findDeserializerFromAnnotation, findKeyDeserializerFromAnnotation, findOptionalStdDeserializer, findPropertyContentTypeDeserializer, findPropertyTypeDeserializer, findTypeDeserializer, findValueInstantiator, getFactoryConfig, hasExplicitDeserializerFor, mapAbstractType, modifyTypeByAnnotation, resolveMemberAndTypeAnnotations, resolveType, withAbstractTypeResolver, withAdditionalDeserializers, withAdditionalKeyDeserializers, withDeserializerModifier, withValueInstantiatorspublic static final BeanDeserializerFactory instance
public BeanDeserializerFactory(DeserializerFactoryConfig config)
public DeserializerFactory withConfig(DeserializerFactoryConfig config)
withConfig in class BasicDeserializerFactorypublic JsonDeserializer<Object> createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
DeserializerCaches call to create a new
 deserializer for types other than Collections, Maps, arrays and
 enums.createBeanDeserializer in class DeserializerFactorytype - Type to be deserializedJsonMappingExceptionpublic JsonDeserializer<Object> createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription beanDesc, Class<?> builderClass) throws JsonMappingException
DeserializerFactorycreateBuilderBasedDeserializer in class DeserializerFactoryJsonMappingExceptionprotected JsonDeserializer<?> findStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
BeanDeserializerFactory to see if there might be a standard
 deserializer registered for given type.JsonMappingExceptionprotected JavaType materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingExceptionpublic JsonDeserializer<Object> buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingExceptionprotected JsonDeserializer<Object> buildBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription builderDesc) throws JsonMappingException
JsonMappingExceptionprotected void addObjectIdReader(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
JsonMappingExceptionpublic JsonDeserializer<Object> buildThrowableDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingExceptionprotected BeanDeserializerBuilder constructBeanDeserializerBuilder(DeserializationContext ctxt, BeanDescription beanDesc)
BeanDeserializerBuilder
 which is used to accumulate information needed to create deserializer
 instance.protected void addBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
Note: designed to be overridable, and effort is made to keep interface similar between versions.
JsonMappingExceptionprotected List<BeanPropertyDefinition> filterBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder, List<BeanPropertyDefinition> propDefsIn, Set<String> ignored) throws JsonMappingException
JsonMappingExceptionprotected void addBackReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
JsonMappingException@Deprecated protected void addReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
JsonMappingExceptionprotected void addInjectables(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
ValueInjector instances, and add them to builder.JsonMappingExceptionprotected SettableAnyProperty constructAnySetter(DeserializationContext ctxt, BeanDescription beanDesc, AnnotatedMember mutator) throws JsonMappingException
SettableAnyProperty
 for handling unknown bean properties, given a method that
 has been designated as such setter.mutator - Either 2-argument method (setter, with key and value), or Field
     that contains Map; either way accessor used for passing "any values"JsonMappingExceptionprotected SettableBeanProperty constructSettableProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef, JavaType propType0) throws JsonMappingException
JsonMappingExceptionprotected SettableBeanProperty constructSetterlessProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef) throws JsonMappingException
JsonMappingExceptionprotected boolean isPotentialBeanType(Class<?> type)
Note that usually we shouldn't really be getting these sort of types anyway; but better safe than sorry.
protected boolean isIgnorableType(DeserializationConfig config, BeanPropertyDefinition propDef, Class<?> type, Map<Class<?>,Boolean> ignoredTypes)
protected void _validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingExceptionCopyright © 2008–2020 FasterXML. All rights reserved.