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 anObjectMapperinstance 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
Constructors Constructor Description JsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospector(Annotations ann)protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospectors(Annotations[] annotationsToUse)com.fasterxml.jackson.databind.ObjectMappergetConfiguredMapper()Method that locates, configures and returnsObjectMapperto usecom.fasterxml.jackson.databind.ObjectMappergetDefaultMapper()protected 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 Detail
-
JsonMapperConfigurator
public JsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations)
-
-
Method Detail
-
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)
-
-