Class JsonMapperConfigurator
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
-
- com.fasterxml.jackson.jakarta.rs.json.JsonMapperConfigurator
-
public class JsonMapperConfigurator extends MapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
Helper class used to encapsulate details of configuring anObjectMapperinstance to be used for data binding, as well as accessing it.
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase
_defaultAnnotationsToUse, _defaultMapper, _mapper, _xmlBindIntrospectorClass
-
-
Constructor Summary
Constructors Constructor Description JsonMapperConfigurator(ObjectMapper mapper, Annotations[] defAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnnotationIntrospector_resolveIntrospector(Annotations ann)protected AnnotationIntrospector_resolveIntrospectors(Annotations[] annotationsToUse)ObjectMappergetConfiguredMapper()Method that locates, configures and returnsObjectMapperto useObjectMappergetDefaultMapper()protected ObjectMappermapper()Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.-
Methods inherited from class com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
-
-
-
-
Constructor Detail
-
JsonMapperConfigurator
public JsonMapperConfigurator(ObjectMapper mapper, Annotations[] defAnnotations)
-
-
Method Detail
-
getConfiguredMapper
public ObjectMapper getConfiguredMapper()
Method that locates, configures and returnsObjectMapperto use- Specified by:
getConfiguredMapperin classMapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
-
getDefaultMapper
public ObjectMapper getDefaultMapper()
- Specified by:
getDefaultMapperin classMapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
-
mapper
protected ObjectMapper mapper()
Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.- Specified by:
mapperin classMapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
-
_resolveIntrospectors
protected AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
- Specified by:
_resolveIntrospectorsin classMapperConfiguratorBase<JsonMapperConfigurator,ObjectMapper>
-
_resolveIntrospector
protected AnnotationIntrospector _resolveIntrospector(Annotations ann)
-
-