Class JsonMapperConfigurator
java.lang.Object
org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
org.glassfish.jersey.jackson.internal.jackson.jaxrs.json.JsonMapperConfigurator
- Direct Known Subclasses:
JacksonMapperConfigurator
public class JsonMapperConfigurator
extends MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
Helper class used to encapsulate details of configuring an
ObjectMapper
instance to be used for data binding, as
well as accessing it.-
Field Summary
Fields inherited from class org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.MapperConfiguratorBase
_defaultAnnotationsToUse, _defaultMapper, _jaxbIntrospectorClass, _mapper
-
Constructor Summary
ConstructorDescriptionJsonMapperConfigurator
(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.AnnotationIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector
_resolveIntrospectors
(Annotations[] annotationsToUse) com.fasterxml.jackson.databind.ObjectMapper
Method that locates, configures and returnsObjectMapper
to usecom.fasterxml.jackson.databind.ObjectMapper
protected com.fasterxml.jackson.databind.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.Methods inherited from class org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.MapperConfiguratorBase
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
-
Constructor Details
-
JsonMapperConfigurator
public JsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations)
-
-
Method Details
-
getConfiguredMapper
public com.fasterxml.jackson.databind.ObjectMapper getConfiguredMapper()Method that locates, configures and returnsObjectMapper
to use- Specified by:
getConfiguredMapper
in classMapperConfiguratorBase<JsonMapperConfigurator,
com.fasterxml.jackson.databind.ObjectMapper>
-
getDefaultMapper
public com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()- Specified by:
getDefaultMapper
in classMapperConfiguratorBase<JsonMapperConfigurator,
com.fasterxml.jackson.databind.ObjectMapper>
-
mapper
protected com.fasterxml.jackson.databind.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:
mapper
in classMapperConfiguratorBase<JsonMapperConfigurator,
com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse) - Specified by:
_resolveIntrospectors
in classMapperConfiguratorBase<JsonMapperConfigurator,
com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-