| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.cfg.BaseSettings
public final class BaseSettings
Immutable container class used to store simple configuration settings. Since instances are fully immutable, instances can be freely shared and used without synchronization.
| Field Summary | |
|---|---|
| protected  AnnotationIntrospector | _annotationIntrospectorIntrospector used for accessing annotation value based configuration. | 
| protected  ClassIntrospector | _classIntrospectorIntrospector used to figure out Bean properties needed for bean serialization and deserialization. | 
| protected  DateFormat | _dateFormatCustom date format to use for de-serialization. | 
| protected  HandlerInstantiator | _handlerInstantiatorObject used for creating instances of handlers (serializers, deserializers, type and type id resolvers), given class to instantiate. | 
| protected  Locale | _localeDefault Localeused with serialization formats. | 
| protected  PropertyNamingStrategy | _propertyNamingStrategyCustom property naming strategy in use, if any. | 
| protected  TimeZone | _timeZoneDefault TimeZoneused with serialization formats. | 
| protected  TypeFactory | _typeFactorySpecific factory used for creating JavaTypeinstances;
 needed to allow modules to add more custom type handling
 (mostly to support types of non-Java JVM languages) | 
| protected  TypeResolverBuilder<?> | _typeResolverBuilderType information handler used for "untyped" values (ones declared to have type Object.class) | 
| protected  VisibilityChecker<?> | _visibilityCheckerObject used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). | 
| Constructor Summary | |
|---|---|
| BaseSettings(ClassIntrospector ci,
             AnnotationIntrospector ai,
             VisibilityChecker<?> vc,
             PropertyNamingStrategy pns,
             TypeFactory tf,
             TypeResolverBuilder<?> typer,
             DateFormat dateFormat,
             HandlerInstantiator hi,
             Locale locale,
             TimeZone tz) | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
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.
| Constructor Detail | 
|---|
public BaseSettings(ClassIntrospector ci,
                    AnnotationIntrospector ai,
                    VisibilityChecker<?> vc,
                    PropertyNamingStrategy pns,
                    TypeFactory tf,
                    TypeResolverBuilder<?> typer,
                    DateFormat dateFormat,
                    HandlerInstantiator hi,
                    Locale locale,
                    TimeZone tz)
| Method Detail | 
|---|
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 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()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||