Top Description Fields Constructors Methods
tools.jackson.databind.cfg

public abstract Class MapperBuilderState

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
tools.jackson.databind.json.JsonMapper.Builder.StateImpl, tools.jackson.databind.ObjectMapper.PrivateBuilder.StateImpl
Imports
java.util.Collection, .Collections, .List, tools.jackson.core.PrettyPrinter, .TokenStreamFactory, tools.jackson.core.util.Snapshottable, tools.jackson.databind.*, tools.jackson.databind.deser.DeserializationProblemHandler, .DeserializerFactory, tools.jackson.databind.introspect.ClassIntrospector, .MixInHandler, tools.jackson.databind.jsontype.SubtypeResolver, .TypeResolverProvider, tools.jackson.databind.ser.FilterProvider, .SerializerFactory, tools.jackson.databind.type.TypeFactory, tools.jackson.databind.util.LinkedNode

Interface for State object used for preserving initial state of a MapperBuilder before modules are configured and resulting tools.jackson.databind.ObjectMapper isn't constructed. It is passed to mapper to allow "re-building" via newly created builder.

Note that JDK serialization is supported by switching this object in place of mapper. This requires some acrobatics on return direction.

Field Summary

Modifier and TypeField and Description
protected final AbstractTypeResolver[]
protected final BaseSettings
protected final ClassIntrospector
protected final CoercionConfigs
protected final ConfigOverrides
protected final DatatypeFeatures
protected final ContextAttributes
protected final PrettyPrinter
protected final int
protected final DeserializationContexts
protected final DeserializerFactory
protected final FilterProvider
protected final int
protected final int
protected final InjectableValues
protected final long
protected final MixInHandler
protected final JacksonModule[]
_modules

Modules registered in registration order, if any; `null` if none.

protected final LinkedNode<DeserializationProblemHandler>
_problemHandlers

Optional handlers that application may register to try to work-around various problem situations during deserialization

protected final int
protected final SerializationContexts
protected final SerializerFactory
protected final TokenStreamFactory
protected final int
protected final int
protected final SubtypeResolver
protected final TypeFactory
protected final TypeResolverProvider
private static final long

Constructor Summary

AccessConstructor and Description
public
MapperBuilderState(MapperBuilder<?, ?> src)

Constructor called when "saving" state of mapper, to be used as base for ObjectMapper#rebuild() functionality.

Method Summary

Modifier and TypeMethod and Description
private static JacksonModule[]
public Collection<JacksonModule>
protected abstract Object
readResolve()

Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_abstractTypeResolversback to summary
protected final AbstractTypeResolver[] _abstractTypeResolvers
_baseSettingsback to summary
protected final BaseSettings _baseSettings
_classIntrospectorback to summary
protected final ClassIntrospector _classIntrospector
_coercionConfigsback to summary
protected final CoercionConfigs _coercionConfigs
_configOverridesback to summary
protected final ConfigOverrides _configOverrides
_datatypeFeaturesback to summary
protected final DatatypeFeatures _datatypeFeatures
_defaultAttributesback to summary
protected final ContextAttributes _defaultAttributes
_defaultPrettyPrinterback to summary
protected final PrettyPrinter _defaultPrettyPrinter
_deserFeaturesback to summary
protected final int _deserFeatures
_deserializationContextsback to summary
protected final DeserializationContexts _deserializationContexts
_deserializerFactoryback to summary
protected final DeserializerFactory _deserializerFactory
_filterProviderback to summary
protected final FilterProvider _filterProvider
_formatReadFeaturesback to summary
protected final int _formatReadFeatures
_formatWriteFeaturesback to summary
protected final int _formatWriteFeatures
_injectableValuesback to summary
protected final InjectableValues _injectableValues
_mapperFeaturesback to summary
protected final long _mapperFeatures
_mixInHandlerback to summary
protected final MixInHandler _mixInHandler
_modulesback to summary
protected final JacksonModule[] _modules

Modules registered in registration order, if any; `null` if none. Does not contain null values.

_problemHandlersback to summary
protected final LinkedNode<DeserializationProblemHandler> _problemHandlers

Optional handlers that application may register to try to work-around various problem situations during deserialization

_serFeaturesback to summary
protected final int _serFeatures
_serializationContextsback to summary
protected final SerializationContexts _serializationContexts
_serializerFactoryback to summary
protected final SerializerFactory _serializerFactory
_streamFactoryback to summary
protected final TokenStreamFactory _streamFactory
_streamReadFeaturesback to summary
protected final int _streamReadFeatures
_streamWriteFeaturesback to summary
protected final int _streamWriteFeatures
_subtypeResolverback to summary
protected final SubtypeResolver _subtypeResolver
_typeFactoryback to summary
protected final TypeFactory _typeFactory
_typeResolverProviderback to summary
protected final TypeResolverProvider _typeResolverProvider
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

MapperBuilderStateback to summary
public MapperBuilderState(MapperBuilder<?, ?> src)

Constructor called when "saving" state of mapper, to be used as base for ObjectMapper#rebuild() functionality.

Method Detail

_toArrayback to summary
private static JacksonModule[] _toArray(Collection<?> coll)
modulesback to summary
public Collection<JacksonModule> modules()
readResolveback to summary
protected abstract Object readResolve()

Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it.