ObjectMapper instances are immutable in Jackson 3.x for full thread-safety,
we need means to construct configured instances. This is the shared base API for
builders for all types of mappers.
| Modifier and Type | Field and Description |
|---|---|
| protected AbstractTypeResolver[] | |
| protected BaseSettings | |
| protected ClassIntrospector | _classIntrospector
Introspector used to figure out Bean properties needed for bean serialization and deserialization. |
| protected final CoercionConfigs | _coercionConfigs
Coercion settings (global, per-type overrides) |
| protected final ConfigOverrides | _configOverrides
Various configuration setting overrides, both global base settings and per-class overrides. |
| protected DatatypeFeatures | |
| protected ContextAttributes | _defaultAttributes
Explicitly configured default |
| protected PrettyPrinter | |
| protected int | _deserFeatures
Set of |
| protected DeserializationContexts | _deserializationContexts
Factory to use for creating per-operation contexts. |
| protected DeserializerFactory | |
| protected FilterProvider | |
| protected int | _formatReadFeatures
Optional per-format parser feature flags. |
| protected int | _formatWriteFeatures
Optional per-format generator feature flags. |
| protected InjectableValues | _injectableValues
Provider for values to inject in deserialized POJOs. |
| protected long | _mapperFeatures
Set of shared mapper features enabled. |
| protected MixInHandler | _mixInHandler
Handler responsible for resolving mix-in classes registered, if any. |
| protected Map | _modules
Modules registered for addition, indexed by registration id. |
| protected LinkedNode | _problemHandlers
Optional handlers that application may register to try to work-around various problem situations during deserialization |
| protected transient MapperBuilderState | _savedState
Configuration state after direct access, immediately before registration of modules (if any) and construction of actual mapper. |
| protected int | _serFeatures
Set of |
| protected SerializationContexts | _serializationContexts
|
| protected SerializerFactory | |
| protected TokenStreamFactory | _streamFactory
Underlying stream factory |
| protected int | _streamReadFeatures
States of |
| protected int | _streamWriteFeatures
States of |
| protected SubtypeResolver | |
| protected TypeFactory | _typeFactory
Specific factory used for creating |
| protected TypeResolverProvider | _typeResolverProvider
Entity responsible for construction actual type resolvers
( |
| protected static final AccessorNamingStrategy. | |
| protected static final AnnotationIntrospector | |
| protected static final BaseSettings | |
| protected static final int | |
| protected static final long | |
| protected static final PrettyPrinter | |
| protected static final int | |
| protected static final TypeResolverProvider | |
| protected static final PolymorphicTypeValidator | |
| protected static final AbstractTypeResolver[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | MapperBuilder(MapperBuilderState state)
Constructor used to support "rebuild", starting with a previously taken snapshot, in order to create mappers that start with a known state of configuration, including a set of modules to register. |
| Modifier and Type | Method and Description |
|---|---|
| protected ModuleContextBase | |
| protected ClassIntrospector | |
| protected ContextAttributes | _defaultDefaultAttributes()
Overridable method for changing default |
| protected TypeResolverBuilder | _defaultDefaultTypingResolver(PolymorphicTypeValidator subtypeValidator, DefaultTyping applicability, JsonTypeInfo.
Overridable method for changing default |
| protected TypeResolverBuilder | _defaultDefaultTypingResolver(PolymorphicTypeValidator subtypeValidator, DefaultTyping applicability, String propertyName)
Overridable method for changing default |
| protected DeserializationContexts | _defaultDeserializationContexts()
Overridable method for changing default |
| pack-priv DeserializerFactory | |
| protected MixInHandler | |
| protected PrettyPrinter | |
| protected SerializationContexts | _defaultSerializationContexts()
Overridable method for changing default |
| protected SerializerFactory | |
| protected SubtypeResolver | |
| protected TypeFactory | |
| protected TypeResolverProvider | _defaultTypeResolverProvider()
Overridable method for changing default |
| protected abstract MapperBuilderState | |
| protected final B | |
| private void | |
| public B | Returns: Builder instance itself to allow chainingStrategy instance to use; if null, use the default implementation sMethod for configuring |
| public B | activateDefaultTyping(PolymorphicTypeValidator subtypeValidator)
Convenience method that is equivalent to calling activateDefaultTyping(DefaultTyping.OBJECT_AND_NON_CONCRETE); |
| public B | activateDefaultTyping(PolymorphicTypeValidator subtypeValidator, DefaultTyping dti)
Convenience method that is equivalent to calling activateDefaultTyping(dti, JsonTypeInfo.As.WRAPPER_ARRAY); |
| public B | activateDefaultTyping(PolymorphicTypeValidator subtypeValidator, DefaultTyping
Defines kinds of types for which additional type information
is added; see applicability, JsonTypeInfo.DefaultTyping for more information.Method for enabling automatic inclusion of type information, needed
for proper deserialization of polymorphic types (unless types
have been annotated with |
| public B | activateDefaultTypingAsProperty(PolymorphicTypeValidator subtypeValidator, DefaultTyping applicability, String propertyName)
Method for enabling automatic inclusion of type information -- needed
for proper deserialization of polymorphic types (unless types
have been annotated with Note choice of |
| public B | addAbstractTypeResolver(AbstractTypeResolver resolver)
Method for inserting specified |
| public B | addHandler(DeserializationProblemHandler h)
Method used for adding a |
| public B | Returns: This builder instance to allow call chainingTarget class on which to add annotations target, Class<?> Class that has annotations to add mixinSource)Method to use for defining mix-in annotations to use for augmenting annotations that classes have, for purpose of configuration serialization and/or deserialization processing. |
| public B | |
| public B | addModule(JacksonModule module)
Method will add given module to be registered when mapper is built, possibly
replacing an earlier instance of the module (as specified by its
|
| public B | |
| public B | |
| public B | |
| public AnnotationIntrospector | |
| public B | annotationIntrospector(AnnotationIntrospector intr)
Method for replacing |
| public BaseSettings | |
| public B | |
| public abstract M | |
| public DeserializationConfig | buildDeserializationConfig(ConfigOverrides configOverrides, MixInHandler mixins, TypeFactory tf, ClassIntrospector classIntr, SubtypeResolver str, RootNameLookup rootNames, CoercionConfigs coercionConfigs)
|
| public SerializationConfig | buildSerializationConfig(ConfigOverrides configOverrides, MixInHandler mixins, TypeFactory tf, ClassIntrospector classIntr, SubtypeResolver str, RootNameLookup rootNames, FilterProvider filterProvider)
|
| public B | |
| public B | changeDefaultNullHandling(UnaryOperator<JsonSetter.
Method for changing currently default settings for handling of `null` values during deserialization, regarding whether they are set as-is, ignored completely, or possible transformed into "empty" value of the target type (if any). |
| public B | changeDefaultPropertyInclusion(UnaryOperator<JsonInclude.
Method for changing currently default settings for property inclusion, used for determining whether POJO properties with certain value should be excluded or not: most common case being exclusion of `null` values. |
| public B | changeDefaultVisibility(UnaryOperator<VisibilityChecker>
Function that is given current default visibility checker and that
needs to return either checker as is, or a new instance created using one or more of
handler)withVisibility (and similar) calls.Method for changing currently configured default |
| public ClassIntrospector | |
| public B | |
| public B | clearProblemHandlers()
Method that may be used to remove all |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | configureForJackson2()
The builder returned uses default settings more closely matching the default configuration used in Jackson 2.x versions. |
| public B | constructorDetector(ConstructorDetector cd)
Method for specifying |
| public DatatypeFeatures | |
| public B | deactivateDefaultTyping()
Method for disabling automatic inclusion of type information; if so, only
explicitly annotated types (ones with
|
| public ContextAttributes | defaultAttributes()
Overridable method for changing default |
| public B | Returns: This Builder instance to allow call chainingDefault instance to use, if not attrs)null, or null for "use empty default set".Method for replacing default |
| public B | Returns: This mapper, for convenience to allow chainingBase64 variant to use v)Method that will configure default |
| public B | defaultDateFormat(DateFormat f)
Method for configuring the default |
| public B | defaultLeniency(Boolean b)
Method for setting default Setter configuration, regarding things like merging, null-handling; used for properties for which there are no per-type or per-property overrides (via annotations or config overrides). |
| public B | |
| public B | defaultMergeable(Boolean b)
Method for setting default Setter configuration, regarding things like merging, null-handling; used for properties for which there are no per-type or per-property overrides (via annotations or config overrides). |
| public PrettyPrinter | |
| public B | |
| public B | |
| public DeserializationContexts | |
| public B | |
| public LinkedNode | |
| public DeserializerFactory | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | |
| public B | Returns: Builder instance itself to allow chainingStrategy instance to use s)Method for configuring |
| public FilterProvider | |
| public B | filterProvider(FilterProvider prov)
Method for configuring this mapper to use specified |
| public B | findAndAddModules()
Convenience method that is functionally equivalent to:
As with |
| public B | findAndAddModules(ClassLoader cl)
Convenience method that is functionally equivalent to:
As with |
| public static List | findModules()
Method for locating available methods, using JDK |
| public static List | findModules(ClassLoader classLoader)
Method for locating available methods, using JDK |
| public B | Returns: Builder instance itself to allow chainingInstantiator to use; if null, use the default implementation hi)Method for configuring |
| public InjectableValues | |
| public B | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public MixInHandler | |
| public B | mixInHandler(MixInHandler h)
Method that may be used to completely change mix-in handling by providing
alternate |
| public B | mixInOverrides(MixInResolver r)
Method that allows defining "override" mix-in resolver: something that is checked first, before simple mix-in definitions. |
| public B | |
| public B | |
| public B | Returns: Builder instance itself to allow chainingStrategy instance to use; if null, use the default implementation s)Method for configuring |
| public B | |
| public B | |
| public B | |
| public B | removeAllModules()
Method that will drop all modules added (via |
| public B | Returns: This builder instance to allow call chainingTarget class for which no mix-ins should remain after call target)Method that allows making sure that specified |
| public MapperBuilderState | saveStateApplyModules()
Method called by mapper being constructed to first save state (delegated to {code _saveState()} method), then apply modules (if any), and then return the saved state (but retain reference to it). |
| private static <T> ServiceLoader | |
| public SerializationContexts | |
| public B | |
| public SerializerFactory | |
| public B | |
| public B | setDefaultTyping(TypeResolverBuilder<?>
Type information inclusion handler typer)Method for enabling automatic inclusion of type information, using specified handler object for determining which types this affects, as well as details of how information is embedded. |
| public TokenStreamFactory | |
| public SubtypeResolver | |
| public B | |
| public TypeFactory | |
| public B | |
| public TypeResolverProvider | |
| protected B | |
| public B | withAllCoercionConfigs(Consumer<CoercionConfigs> handler)
Method for changing various aspects of configuration overrides. |
| public B | withAllConfigOverrides(Consumer<ConfigOverrides> handler)
Method for changing various aspects of configuration overrides. |
| public B | withCoercionConfig(LogicalType forType, Consumer<MutableCoercionConfig> handler)
Method for changing coercion config for specific logical types, through callback to specific handler. |
| public B | withCoercionConfig(Class<?> forType, Consumer<MutableCoercionConfig> handler)
Method for changing coercion config for specific physical type, through callback to specific handler. |
| public B | withCoercionConfigDefaults(Consumer<MutableCoercionConfig> handler)
Method for changing target-type-independent coercion configuration defaults. |
| public B | withConfigOverride(Class<?> forType, Consumer<MutableConfigOverride> handler)
Method for changing config overrides for specific type, through callback to specific handler. |
| public B | withModules(Consumer<JacksonModule> handler)
"Accessor" method that will expose set of registered modules, in addition
order, using |