public final class BaseSettings extends Object implements 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 DateFormat |
_dateFormat
Custom date format to use for de-serialization.
|
protected 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 Locale |
_locale
Default
Locale used with serialization formats. |
protected PropertyNamingStrategy |
_propertyNamingStrategy
Custom property naming strategy in use, if any.
|
protected 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". |
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).
|
Constructor and Description |
---|
BaseSettings(ClassIntrospector ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
PropertyNamingStrategy pns,
TypeFactory tf,
TypeResolverBuilder<?> typer,
DateFormat dateFormat,
HandlerInstantiator hi,
Locale locale,
TimeZone tz,
Base64Variant defaultBase64) |
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 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 Locale _locale
Locale
used with serialization formats.
Default value is Locale.getDefault()
.protected final TimeZone _timeZone
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.
protected final 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, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, 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(PropertyAccessor forMethod, JsonAutoDetect.Visibility visibility)
public BaseSettings withPropertyNamingStrategy(PropertyNamingStrategy pns)
public BaseSettings withTypeFactory(TypeFactory tf)
public BaseSettings withTypeResolverBuilder(TypeResolverBuilder<?> typer)
public BaseSettings withDateFormat(DateFormat df)
public BaseSettings withHandlerInstantiator(HandlerInstantiator hi)
public BaseSettings with(Locale l)
public BaseSettings with(TimeZone tz)
DateFormat
,
changing time formatting defaults.public BaseSettings with(Base64Variant base64)
public ClassIntrospector getClassIntrospector()
public AnnotationIntrospector getAnnotationIntrospector()
public VisibilityChecker<?> getVisibilityChecker()
public PropertyNamingStrategy getPropertyNamingStrategy()
public TypeFactory getTypeFactory()
public TypeResolverBuilder<?> getTypeResolverBuilder()
public DateFormat getDateFormat()
public HandlerInstantiator getHandlerInstantiator()
public Locale getLocale()
public TimeZone getTimeZone()
public boolean hasExplicitTimeZone()
public Base64Variant getBase64Variant()
Copyright © 2008–2017 FasterXML. All rights reserved.