Class BaseSettings
- java.lang.Object
-
- com.fasterxml.jackson.databind.cfg.BaseSettings
-
- All Implemented Interfaces:
java.io.Serializable
public final class BaseSettings extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, java.text.DateFormat dateFormat, HandlerInstantiator hi, java.util.Locale locale, java.util.TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv)
Deprecated.BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, java.text.DateFormat dateFormat, HandlerInstantiator hi, java.util.Locale locale, java.util.TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming)
-
Method Summary
-
-
-
Constructor Detail
-
BaseSettings
public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, java.text.DateFormat dateFormat, HandlerInstantiator hi, java.util.Locale locale, java.util.TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming)
- Since:
- 2.12
-
BaseSettings
@Deprecated public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, java.text.DateFormat dateFormat, HandlerInstantiator hi, java.util.Locale locale, java.util.TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv)
Deprecated.
-
-
Method Detail
-
copy
public BaseSettings 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
public BaseSettings withClassIntrospector(ClassIntrospector ci)
-
withAnnotationIntrospector
public BaseSettings withAnnotationIntrospector(AnnotationIntrospector ai)
-
withInsertedAnnotationIntrospector
public BaseSettings withInsertedAnnotationIntrospector(AnnotationIntrospector ai)
-
withAppendedAnnotationIntrospector
public BaseSettings withAppendedAnnotationIntrospector(AnnotationIntrospector ai)
-
withPropertyNamingStrategy
public BaseSettings withPropertyNamingStrategy(PropertyNamingStrategy pns)
-
withAccessorNaming
public BaseSettings withAccessorNaming(AccessorNamingStrategy.Provider p)
-
withTypeFactory
public BaseSettings withTypeFactory(TypeFactory tf)
-
withTypeResolverBuilder
public BaseSettings withTypeResolverBuilder(TypeResolverBuilder<?> typer)
-
withDateFormat
public BaseSettings withDateFormat(java.text.DateFormat df)
-
withHandlerInstantiator
public BaseSettings withHandlerInstantiator(HandlerInstantiator hi)
-
with
public BaseSettings with(java.util.Locale l)
-
with
public BaseSettings with(java.util.TimeZone tz)
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
public BaseSettings with(Base64Variant base64)
- Since:
- 2.1
-
with
public BaseSettings with(PolymorphicTypeValidator v)
- Since:
- 2.10
-
getClassIntrospector
public ClassIntrospector getClassIntrospector()
-
getAnnotationIntrospector
public AnnotationIntrospector getAnnotationIntrospector()
-
getPropertyNamingStrategy
public PropertyNamingStrategy getPropertyNamingStrategy()
-
getAccessorNaming
public AccessorNamingStrategy.Provider getAccessorNaming()
-
getTypeFactory
public TypeFactory getTypeFactory()
-
getTypeResolverBuilder
public TypeResolverBuilder<?> getTypeResolverBuilder()
-
getPolymorphicTypeValidator
public PolymorphicTypeValidator getPolymorphicTypeValidator()
- Since:
- 2.10
-
getDateFormat
public java.text.DateFormat getDateFormat()
-
getHandlerInstantiator
public HandlerInstantiator getHandlerInstantiator()
-
getLocale
public java.util.Locale getLocale()
-
getTimeZone
public java.util.TimeZone 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
public Base64Variant getBase64Variant()
-
-