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 |
|---|---|
| private static final Class | INIT_CAUSE_PARAMS
Signature of Throwable.initCause method. |
| public static final BeanDeserializerFactory | instance
Globally shareable thread-safe instance which has no additional custom deserializers registered |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonDeserializer | _findUnsupportedTypeDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Helper method called to see if given type, otherwise to be taken as POJO type, is "known but not supported" JDK type, and if so, return alternate handler (deserializer). |
| private boolean | |
| protected void | |
| 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 |
| protected void | addObjectIdReader(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
|
| protected void | addReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
Deprecated
|
| public JsonDeserializer | buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Method that is to actually build a bean deserializer instance. |
| protected JsonDeserializer | 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. |
| public JsonDeserializer | |
| protected SettableAnyProperty | constructAnySetter(DeserializationContext ctxt, BeanDescription beanDesc, AnnotatedMember
Either 2-argument method (setter, with key and value), or Field
that contains Map; either way accessor used for passing "any values" mutator)Method called to construct fallback |
| protected BeanDeserializerBuilder | constructBeanDeserializerBuilder(DeserializationContext ctxt, BeanDescription beanDesc)
Overridable method that constructs a |
| protected SettableBeanProperty | Returns: Property constructed, if any; or null to indicate that there should be no property based on given definitions.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. |
| public JsonDeserializer | createBeanDeserializer(DeserializationContext ctxt, JavaType
Type to be deserialized type, BeanDescription beanDesc)Implements abstract com. DeserializerCaches call to create a new
deserializer for types other than Collections, Maps, arrays and
enums.
|
| public JsonDeserializer | createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription valueBeanDesc, Class<?> builderClass)
Implements abstract com. |
| protected List | filterBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder, List<BeanPropertyDefinition> propDefsIn, Set<String> ignored)
Deprecated
in 2.12, remove from 3.0
Helper method called to filter out explicit ignored properties,
as well as properties that have "ignorable types".
|
| protected List | filterBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder, List<BeanPropertyDefinition> propDefsIn, Set<String> ignored, Set<String> included)
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 |
| 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. are never consider to be) beans: things like primitives, Arrays, Enums, and proxy types. |
| protected JavaType | |
| public DeserializerFactory | withConfig(DeserializerFactoryConfig config)
Implements abstract com. |
| INIT_CAUSE_PARAMS | back to summary |
|---|---|
| private static final Class<?>[] INIT_CAUSE_PARAMS Signature of Throwable.initCause method. | |
| instance | back to summary |
|---|---|
| public static final BeanDeserializerFactory instance Globally shareable thread-safe instance which has no additional custom deserializers registered | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| BeanDeserializerFactory | back to summary |
|---|---|
| public BeanDeserializerFactory(DeserializerFactoryConfig config) | |
| _findUnsupportedTypeDeserializer | back to summary |
|---|---|
| protected JsonDeserializer Helper method called to see if given type, otherwise to be taken as POJO type, is "known but not supported" JDK type, and if so, return alternate handler (deserializer). Initially added to support more meaningful error messages when "Java 8 date/time" support module not registered.
| |
| _isSetterlessType | back to summary |
|---|---|
| private boolean _isSetterlessType(Class<?> rawType) | |
| _validateSubType | back to summary |
|---|---|
protected void _validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
| |
| addBackReferenceProperties | back to summary |
|---|---|
| protected void addBackReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException 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.
| |
| addBeanProps | back to summary |
|---|---|
| protected void addBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException Method called to figure out settable properties for the bean deserializer to use. Note designed to be overridable, and effort is made to keep interface similar between versions. | |
| addInjectables | back to summary |
|---|---|
| protected void addInjectables(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException Method called locate all members used for value injection (if any),
constructor | |
| addObjectIdReader | back to summary |
|---|---|
| protected void addObjectIdReader(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException | |
| addReferenceProperties | back to summary |
|---|---|
| protected void addReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder) throws JsonMappingException
Deprecated
| |
| buildBeanDeserializer | back to summary |
|---|---|
| public JsonDeserializer Method that is to actually build a bean deserializer instance. All basic sanity checks have been done to know that what we have may be a valid bean type, and that there are no default simple deserializers.
| |
| buildBuilderBasedDeserializer | back to summary |
|---|---|
| protected JsonDeserializer Method for constructing a bean deserializer that uses specified intermediate Builder for binding data, and construction of the value instance. Note that implementation is mostly copied from the regular BeanDeserializer build method.
| |
| buildThrowableDeserializer | back to summary |
|---|---|
public JsonDeserializer
| |
| constructAnySetter | back to summary |
|---|---|
| protected SettableAnyProperty constructAnySetter(DeserializationContext ctxt, BeanDescription beanDesc, AnnotatedMember mutator) throws JsonMappingException Method called to construct fallback
| |
| constructBeanDeserializerBuilder | back to summary |
|---|---|
| protected BeanDeserializerBuilder constructBeanDeserializerBuilder(DeserializationContext ctxt, BeanDescription beanDesc) Overridable method that constructs a | |
| constructSettableProperty | back to summary |
|---|---|
| protected SettableBeanProperty constructSettableProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef, JavaType propType0) throws JsonMappingException Method that will construct a regular bean property setter using the given setter method.
| |
| constructSetterlessProperty | back to summary |
|---|---|
| protected SettableBeanProperty constructSetterlessProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef) throws JsonMappingException Method that will construct a regular bean property setter using the given setter method. | |
| createBeanDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements abstract com. Method that
| |
| createBuilderBasedDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements abstract com. Doc from com. Method called to create a deserializer that will use specified Builder class for building value instances.
| |
| filterBeanProps | back to summary |
|---|---|
| protected List Deprecated in 2.12, remove from 3.0 Helper method called to filter out explicit ignored properties, as well as properties that have "ignorable types". Note that this will not remove properties that have no setters.
| |
| filterBeanProps | back to summary |
|---|---|
| protected List Helper method called to filter out explicit ignored properties, as well as properties that have "ignorable types". Note that this will not remove properties that have no setters.
| |
| findStdDeserializer | back to summary |
|---|---|
| protected JsonDeserializer Method called by | |
| isIgnorableType | back to summary |
|---|---|
| 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) | |
| isPotentialBeanType | back to summary |
|---|---|
| protected boolean isPotentialBeanType(Class<?> type) Helper method used to skip processing for types that we know cannot be (i.e. are never consider to be) beans: things like primitives, Arrays, Enums, and proxy types. Note that usually we shouldn't really be getting these sort of types anyway; but better safe than sorry. | |
| materializeAbstractType | back to summary |
|---|---|
| protected JavaType materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException | |
| withConfig | back to summary |
|---|---|
| public DeserializerFactory withConfig(DeserializerFactoryConfig config) Implements abstract com. Method used by module registration functionality, to construct a new bean deserializer factory with different configuration settings.
| |