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 ValueDeserializer | _findUnsupportedTypeDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.
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 | |
| private SettableAnyProperty | _resolveAnySetter(DeserializationContext ctxt, BeanDescription.
|
| protected void | |
| protected void | addBackReferenceProperties(DeserializationContext ctxt, BeanDescription.
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.
Method called to figure out settable properties for the bean deserializer to use. |
| protected void | addInjectables(DeserializationContext ctxt, BeanDescription.
Method called locate all members used for value injection (if any),
constructor |
| protected void | addObjectIdReader(DeserializationContext ctxt, BeanDescription.
|
| public ValueDeserializer | buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.
Method that is to actually build a bean deserializer instance. |
| protected ValueDeserializer | buildBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription.
Method for constructing a bean deserializer that uses specified intermediate Builder for binding data, and construction of the value instance. |
| public ValueDeserializer | buildThrowableDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.
|
| protected SettableAnyProperty | constructAnySetter(DeserializationContext ctxt, BeanDescription.
Either a 2-argument method (setter, with key and value),
or a Field or (as of 2.18) Constructor Parameter of type Map or JsonNode/Object;
either way accessor used for passing "any values" mutator)Method called to construct fallback |
| protected BeanDeserializerBuilder | constructBeanDeserializerBuilder(DeserializationContext ctxt, BeanDescription.
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 ValueDeserializer | createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.
Implements abstract tools. Method that called to create a new deserializer for types other than Collections, Maps, arrays, referential types or enums, or "well-known" JDK scalar types. |
| public ValueDeserializer | createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription.
Implements abstract tools. Method called to create a deserializer that will use specified Builder class for building value instances. |
| protected List | filterBeanProps(DeserializationContext ctxt, BeanDescription.
Helper method called to filter out explicit ignored properties, as well as properties that have "ignorable types". |
| protected ValueDeserializer | findStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.
Method called by |
| protected boolean | isIgnorableType(DeserializationContext ctxt, 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 | materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription.
|
| public DeserializerFactory | withConfig(DeserializerFactoryConfig config)
Implements abstract tools. Method used by module registration functionality, to construct a new bean deserializer factory with different configuration settings. |
| 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 ValueDeserializer 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) | |
| _resolveAnySetter | back to summary |
|---|---|
| private SettableAnyProperty _resolveAnySetter(DeserializationContext ctxt, BeanDescription. | |
| _validateSubType | back to summary |
|---|---|
| protected void _validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription. | |
| addBackReferenceProperties | back to summary |
|---|---|
| protected void addBackReferenceProperties(DeserializationContext ctxt, BeanDescription. 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. 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. Method called locate all members used for value injection (if any),
constructor | |
| addObjectIdReader | back to summary |
|---|---|
| protected void addObjectIdReader(DeserializationContext ctxt, BeanDescription. | |
| buildBeanDeserializer | back to summary |
|---|---|
| public ValueDeserializer 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 ValueDeserializer 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 ValueDeserializer
| |
| constructAnySetter | back to summary |
|---|---|
| protected SettableAnyProperty constructAnySetter(DeserializationContext ctxt, BeanDescription. Method called to construct fallback
| |
| constructBeanDeserializerBuilder | back to summary |
|---|---|
| protected BeanDeserializerBuilder constructBeanDeserializerBuilder(DeserializationContext ctxt, BeanDescription. Overridable method that constructs a | |
| constructSettableProperty | back to summary |
|---|---|
| protected SettableBeanProperty constructSettableProperty(DeserializationContext ctxt, BeanDescription. 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) Method that will construct a regular bean property setter using the given setter method. | |
| createBeanDeserializer | back to summary |
|---|---|
| public ValueDeserializer Implements abstract tools. Method that called to create a new deserializer for types other than Collections, Maps, arrays, referential types or enums, or "well-known" JDK scalar types.
| |
| createBuilderBasedDeserializer | back to summary |
|---|---|
| public ValueDeserializer Implements abstract tools. Doc from tools. Method called to create a deserializer that will use specified Builder class for building value instances.
| |
| 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 ValueDeserializer Method called by | |
| isIgnorableType | back to summary |
|---|---|
| protected boolean isIgnorableType(DeserializationContext ctxt, 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. | |
| withConfig | back to summary |
|---|---|
| public DeserializerFactory withConfig(DeserializerFactoryConfig config) Implements abstract tools. Method used by module registration functionality, to construct a new bean deserializer factory with different configuration settings.
| |