public static class MapperConfig.Base extends Object
Modifier and Type | Field and Description |
---|---|
protected AnnotationIntrospector |
_annotationIntrospector
Introspector used for accessing annotation value based configuration.
|
protected ClassIntrospector<? extends BeanDescription> |
_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 HandlerInstantiator |
_handlerInstantiator
Object used for creating instances of handlers (serializers, deserializers,
type and type id resolvers), given class to instantiate.
|
protected PropertyNamingStrategy |
_propertyNamingStrategy
Custom property naming strategy in use, if any.
|
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 |
---|
MapperConfig.Base(ClassIntrospector<? extends BeanDescription> ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
PropertyNamingStrategy pns,
TypeFactory tf,
TypeResolverBuilder<?> typer,
DateFormat dateFormat,
HandlerInstantiator hi) |
protected final ClassIntrospector<? extends BeanDescription> _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
public MapperConfig.Base(ClassIntrospector<? extends BeanDescription> ci, AnnotationIntrospector ai, VisibilityChecker<?> vc, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi)
public MapperConfig.Base withClassIntrospector(ClassIntrospector<? extends BeanDescription> ci)
public MapperConfig.Base withAnnotationIntrospector(AnnotationIntrospector ai)
public MapperConfig.Base withInsertedAnnotationIntrospector(AnnotationIntrospector ai)
public MapperConfig.Base withAppendedAnnotationIntrospector(AnnotationIntrospector ai)
public MapperConfig.Base withVisibilityChecker(VisibilityChecker<?> vc)
public MapperConfig.Base withVisibility(JsonMethod forMethod, JsonAutoDetect.Visibility visibility)
public MapperConfig.Base withPropertyNamingStrategy(PropertyNamingStrategy pns)
public MapperConfig.Base withTypeFactory(TypeFactory tf)
public MapperConfig.Base withTypeResolverBuilder(TypeResolverBuilder<?> typer)
public MapperConfig.Base withDateFormat(DateFormat df)
public MapperConfig.Base withHandlerInstantiator(HandlerInstantiator hi)
public ClassIntrospector<? extends BeanDescription> getClassIntrospector()
public AnnotationIntrospector getAnnotationIntrospector()
public VisibilityChecker<?> getVisibilityChecker()
public PropertyNamingStrategy getPropertyNamingStrategy()
public TypeFactory getTypeFactory()
public TypeResolverBuilder<?> getTypeResolverBuilder()
public DateFormat getDateFormat()
public HandlerInstantiator getHandlerInstantiator()