Class BaseSettings
java.lang.Object
com.fasterxml.jackson.databind.cfg.BaseSettings
- All Implemented Interfaces:
Serializable
Immutable container class used to store simple configuration
settings for both serialization and deserialization.
Since instances are fully immutable, instances can
be freely shared and used without synchronization.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSettings
(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv) Deprecated.BaseSettings
(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming) Deprecated.BaseSettings
(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming, CacheProvider cacheProvider) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Turns out we are not necessarily 100% stateless, alas, sinceClassIntrospector
typically has a cache.boolean
Accessor that may be called to determine whether this settings object has been explicitly configured with a TimeZone (true), or is still relying on the default settings (false).with
(Base64Variant base64) with
(CacheProvider cacheProvider) Fluent factory for constructing a new instance with providedCacheProvider
.Fluent factory for constructing a new instance that uses specified TimeZone.withTypeResolverBuilder
(TypeResolverBuilder<?> typer)
-
Constructor Details
-
BaseSettings
public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming, CacheProvider cacheProvider) - Since:
- 2.16
-
BaseSettings
@Deprecated public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming) Deprecated.Since 2.16, use variant that takesCacheProvider
instead.- Since:
- 2.12
-
BaseSettings
@Deprecated public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv) Deprecated.
-
-
Method Details
-
copy
Turns out we are not necessarily 100% stateless, alas, sinceClassIntrospector
typically has a cache. So this method is needed for deep copy() of Mapper.- Since:
- 2.9.6
-
withClassIntrospector
-
withAnnotationIntrospector
-
withInsertedAnnotationIntrospector
-
withAppendedAnnotationIntrospector
-
withPropertyNamingStrategy
-
withAccessorNaming
-
withTypeFactory
-
withTypeResolverBuilder
-
withDateFormat
-
withHandlerInstantiator
-
with
-
with
Fluent factory for constructing a new instance that uses specified TimeZone. Note that timezone used with also be assigned to configuredDateFormat
, changing time formatting defaults. -
with
- Since:
- 2.1
-
with
- Since:
- 2.10
-
with
Fluent factory for constructing a new instance with providedCacheProvider
.- Returns:
- a new instance with provided
CacheProvider
. - Since:
- 2.16
-
getClassIntrospector
-
getAnnotationIntrospector
-
getPropertyNamingStrategy
-
getAccessorNaming
-
getTypeFactory
-
getTypeResolverBuilder
-
getPolymorphicTypeValidator
- Since:
- 2.10
-
getDateFormat
-
getHandlerInstantiator
-
getLocale
-
getTimeZone
-
hasExplicitTimeZone
public boolean hasExplicitTimeZone()Accessor that may be called to determine whether this settings object has been explicitly configured with a TimeZone (true), or is still relying on the default settings (false).- Since:
- 2.7
-
getBase64Variant
-
getCacheProvider
- Since:
- 2.16
-
CacheProvider
instead.