Package org.codehaus.jackson.map
Class MapperConfig.Base
java.lang.Object
org.codehaus.jackson.map.MapperConfig.Base
- Enclosing class:
- MapperConfig<T extends MapperConfig<T>>
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
FieldsModifier and TypeFieldDescriptionprotected final AnnotationIntrospector
Introspector used for accessing annotation value based configuration.protected final ClassIntrospector<? extends BeanDescription>
Introspector used to figure out Bean properties needed for bean serialization and deserialization.protected final DateFormat
Custom date format to use for de-serialization.protected final HandlerInstantiator
Object used for creating instances of handlers (serializers, deserializers, type and type id resolvers), given class to instantiate.protected final PropertyNamingStrategy
Custom property naming strategy in use, if any.protected final TypeFactory
Specific factory used for creatingJavaType
instances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)protected final TypeResolverBuilder<?>
Type information handler used for "untyped" values (ones declared to have typeObject.class
)protected final VisibilityChecker<?>
Object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). -
Constructor Summary
ConstructorsConstructorDescriptionBase
(ClassIntrospector<? extends BeanDescription> ci, AnnotationIntrospector ai, VisibilityChecker<?> vc, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi) -
Method Summary
Modifier and TypeMethodDescriptionClassIntrospector<? extends BeanDescription>
withClassIntrospector
(ClassIntrospector<? extends BeanDescription> ci) withTypeResolverBuilder
(TypeResolverBuilder<?> typer) withVisibility
(JsonMethod forMethod, JsonAutoDetect.Visibility visibility)
-
Field Details
-
_classIntrospector
Introspector used to figure out Bean properties needed for bean serialization and deserialization. Overridable so that it is possible to change low-level details of introspection, like adding new annotation types. -
_annotationIntrospector
Introspector used for accessing annotation value based configuration. -
_visibilityChecker
Object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). Can be changed to allow different minimum visibility levels for auto-detection. Note that this is the global handler; individual types (classes) can further override active checker used (usingJsonAutoDetect
annotation)- Since:
- 1.5
-
_propertyNamingStrategy
Custom property naming strategy in use, if any.- Since:
- 1.8
-
_typeFactory
Specific factory used for creatingJavaType
instances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages) -
_typeResolverBuilder
Type information handler used for "untyped" values (ones declared to have typeObject.class
)- Since:
- 1.5
-
_dateFormat
Custom date format to use for de-serialization. If specified, will be used instead ofStdDateFormat
.Note that the configured format object will be cloned once per deserialization process (first time it is needed)
-
_handlerInstantiator
Object used for creating instances of handlers (serializers, deserializers, type and type id resolvers), given class to instantiate. This is typically used to do additional configuration (with dependency injection, for example) beyond simply construction of instances; or to use alternative constructors.
-
-
Constructor Details
-
Base
public Base(ClassIntrospector<? extends BeanDescription> ci, AnnotationIntrospector ai, VisibilityChecker<?> vc, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi)
-
-
Method Details
-
withClassIntrospector
-
withAnnotationIntrospector
-
withInsertedAnnotationIntrospector
-
withAppendedAnnotationIntrospector
-
withVisibilityChecker
-
withVisibility
-
withPropertyNamingStrategy
-
withTypeFactory
-
withTypeResolverBuilder
-
withDateFormat
-
withHandlerInstantiator
-
getClassIntrospector
-
getAnnotationIntrospector
-
getVisibilityChecker
-
getPropertyNamingStrategy
-
getTypeFactory
-
getTypeResolverBuilder
-
getDateFormat
-
getHandlerInstantiator
-