com.fasterxml.jackson.databind.cfg

Class BaseSettings

  • All Implemented Interfaces:
    Serializable


    public final class BaseSettings
    extends Object
    implements Serializable
    Immutable container class used to store simple configuration settings. Since instances are fully immutable, instances can be freely shared and used without synchronization.
    See Also:
    Serialized Form
    • Field Detail

      • _classIntrospector

        protected final ClassIntrospector _classIntrospector
        Introspector used to figure out Bean properties needed for bean serialization and deserialization. Overridable so that it is possible to change low-level details of introspection, like adding new annotation types.
      • _annotationIntrospector

        protected final AnnotationIntrospector _annotationIntrospector
        Introspector used for accessing annotation value based configuration.
      • _propertyNamingStrategy

        protected final PropertyNamingStrategy _propertyNamingStrategy
        Custom property naming strategy in use, if any.
      • _typeFactory

        protected final TypeFactory _typeFactory
        Specific factory used for creating JavaType instances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)
      • _typeResolverBuilder

        protected final TypeResolverBuilder<?> _typeResolverBuilder
        Type information handler used for "untyped" values (ones declared to have type Object.class)
      • _dateFormat

        protected final DateFormat _dateFormat
        Custom date format to use for de-serialization. If specified, will be used instead of StdDateFormat.

        Note that the configured format object will be cloned once per deserialization process (first time it is needed)

      • _handlerInstantiator

        protected final HandlerInstantiator _handlerInstantiator
        Object used for creating instances of handlers (serializers, deserializers, type and type id resolvers), given class to instantiate. This is typically used to do additional configuration (with dependency injection, for example) beyond simply construction of instances; or to use alternative constructors.
      • _timeZone

        protected final TimeZone _timeZone
        Default TimeZone used with serialization formats, if (and only if!) explicitly set by use; otherwise `null` to indicate "use default", which means "UTC" (from Jackson 2.7); earlier versions (up to 2.6) used "GMT".

        Note that if a new value is set, timezone is also assigned to _dateFormat of this object.

      • _defaultBase64

        protected final Base64Variant _defaultBase64
        Explicitly default Base64Variant to use for handling binary data (byte[]), used with data formats that use base64 encoding (like JSON, CSV).
        Since:
        2.1

Copyright © 2008–2020 FasterXML. All rights reserved.