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 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 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. |
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,
com.fasterxml.jackson.core.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.
Default value is TimeZone.getDefault()
, which is typically the
local time zone (unless overridden for JVM).
Note that if a new value is set, time zone 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, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, 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(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(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 DateFormat getDateFormat()
public HandlerInstantiator getHandlerInstantiator()
public Locale getLocale()
public TimeZone getTimeZone()
public com.fasterxml.jackson.core.Base64Variant getBase64Variant()
Copyright © 2014–2015 FasterXML. All rights reserved.