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
ConstructorsConstructorDescriptionJsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.AnnotationIntrospectorprotected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospectors(Annotations[] annotationsToUse) com.fasterxml.jackson.databind.ObjectMapperMethod that locates, configures and returnsObjectMapperto usecom.fasterxml.jackson.databind.ObjectMapperprotected com.fasterxml.jackson.databind.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 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 returnsObjectMapperto use- Specified by:
getConfiguredMapperin classMapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
getDefaultMapper
public com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()- Specified by:
getDefaultMapperin 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:
mapperin classMapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse) - Specified by:
_resolveIntrospectorsin classMapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-