public final class BaseSettings
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected AnnotationIntrospector |
_annotationIntrospector
Introspector used for accessing annotation value based configuration.
|
protected ClassIntrospector |
_classIntrospector
Introspector used to figure out Bean properties needed for bean serialization
and deserialization.
|
protected java.text.DateFormat |
_dateFormat
Custom date format to use for de-serialization.
|
protected com.fasterxml.jackson.core.Base64Variant |
_defaultBase64
Explicitly default
Base64Variant to use for handling
binary data (byte[] ), used with data formats
that use base64 encoding (like JSON, CSV). |
protected HandlerInstantiator |
_handlerInstantiator
Object used for creating instances of handlers (serializers, deserializers,
type and type id resolvers), given class to instantiate.
|
protected java.util.Locale |
_locale
Default
Locale used with serialization formats. |
protected PropertyNamingStrategy |
_propertyNamingStrategy
Custom property naming strategy in use, if any.
|
protected java.util.TimeZone |
_timeZone
Default
TimeZone used with serialization formats,
if (and only if!) explicitly set by use; otherwise `null` to indicate
"use default", which currently (Jackson 2.6) means "GMT" |
protected 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) |
protected TypeResolverBuilder<?> |
_typeResolverBuilder
Type information handler used for "untyped" values (ones declared
to have type
Object.class ) |
protected VisibilityChecker<?> |
_visibilityChecker
Object used for determining whether specific property elements
(method, constructors, fields) can be auto-detected based on
their visibility (access modifiers).
|
private static java.util.TimeZone |
DEFAULT_TIMEZONE
We will use a default TimeZone as the baseline.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
BaseSettings(ClassIntrospector ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
PropertyNamingStrategy pns,
TypeFactory tf,
TypeResolverBuilder<?> typer,
java.text.DateFormat dateFormat,
HandlerInstantiator hi,
java.util.Locale locale,
java.util.TimeZone tz,
com.fasterxml.jackson.core.Base64Variant defaultBase64) |
private static final long serialVersionUID
private static final java.util.TimeZone DEFAULT_TIMEZONE
protected final ClassIntrospector _classIntrospector
protected final AnnotationIntrospector _annotationIntrospector
protected final VisibilityChecker<?> _visibilityChecker
JsonAutoDetect
annotation)protected final PropertyNamingStrategy _propertyNamingStrategy
protected final TypeFactory _typeFactory
JavaType
instances;
needed to allow modules to add more custom type handling
(mostly to support types of non-Java JVM languages)protected final TypeResolverBuilder<?> _typeResolverBuilder
Object.class
)protected final java.text.DateFormat _dateFormat
StdDateFormat
.
Note that the configured format object will be cloned once per deserialization process (first time it is needed)
protected final HandlerInstantiator _handlerInstantiator
protected final java.util.Locale _locale
Locale
used with serialization formats.
Default value is Locale.getDefault()
.protected final java.util.TimeZone _timeZone
TimeZone
used with serialization formats,
if (and only if!) explicitly set by use; otherwise `null` to indicate
"use default", which currently (Jackson 2.6) means "GMT"
Note that if a new value is set, timezone is also assigned to
_dateFormat
of this object.
protected final com.fasterxml.jackson.core.Base64Variant _defaultBase64
Base64Variant
to use for handling
binary data (byte[]
), used with data formats
that use base64 encoding (like JSON, CSV).public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, VisibilityChecker<?> vc, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, java.text.DateFormat dateFormat, HandlerInstantiator hi, java.util.Locale locale, java.util.TimeZone tz, com.fasterxml.jackson.core.Base64Variant defaultBase64)
public BaseSettings withClassIntrospector(ClassIntrospector ci)
public BaseSettings withAnnotationIntrospector(AnnotationIntrospector ai)
public BaseSettings withInsertedAnnotationIntrospector(AnnotationIntrospector ai)
public BaseSettings withAppendedAnnotationIntrospector(AnnotationIntrospector ai)
public BaseSettings withVisibilityChecker(VisibilityChecker<?> vc)
public BaseSettings withVisibility(com.fasterxml.jackson.annotation.PropertyAccessor forMethod, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility visibility)
public BaseSettings withPropertyNamingStrategy(PropertyNamingStrategy pns)
public BaseSettings withTypeFactory(TypeFactory tf)
public BaseSettings withTypeResolverBuilder(TypeResolverBuilder<?> typer)
public BaseSettings withDateFormat(java.text.DateFormat df)
public BaseSettings withHandlerInstantiator(HandlerInstantiator hi)
public BaseSettings with(java.util.Locale l)
public BaseSettings with(java.util.TimeZone tz)
DateFormat
,
changing time formatting defaults.public BaseSettings with(com.fasterxml.jackson.core.Base64Variant base64)
public ClassIntrospector getClassIntrospector()
public AnnotationIntrospector getAnnotationIntrospector()
public VisibilityChecker<?> getVisibilityChecker()
public PropertyNamingStrategy getPropertyNamingStrategy()
public TypeFactory getTypeFactory()
public TypeResolverBuilder<?> getTypeResolverBuilder()
public java.text.DateFormat getDateFormat()
public HandlerInstantiator getHandlerInstantiator()
public java.util.Locale getLocale()
public java.util.TimeZone getTimeZone()
public boolean hasExplicitTimeZone()
public com.fasterxml.jackson.core.Base64Variant getBase64Variant()
private java.text.DateFormat _force(java.text.DateFormat df, java.util.TimeZone tz)