public class JsonMapperConfigurator extends MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
ObjectMapper
instance to be used for data binding, as
well as accessing it._defaultAnnotationsToUse, _defaultMapper, _jaxbIntrospectorClass, _mapper
Constructor and Description |
---|
JsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper,
Annotations[] defAnnotations) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_resolveIntrospector(Annotations ann) |
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_resolveIntrospectors(Annotations[] annotationsToUse) |
com.fasterxml.jackson.databind.ObjectMapper |
getConfiguredMapper()
Method that locates, configures and returns
ObjectMapper to use |
com.fasterxml.jackson.databind.ObjectMapper |
getDefaultMapper() |
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.
|
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
public JsonMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations)
public com.fasterxml.jackson.databind.ObjectMapper getConfiguredMapper()
ObjectMapper
to usegetConfiguredMapper
in class MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
public com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()
getDefaultMapper
in class MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
protected com.fasterxml.jackson.databind.ObjectMapper mapper()
mapper
in class MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
_resolveIntrospectors
in class MapperConfiguratorBase<JsonMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
Copyright © 2016 FasterXML. All rights reserved.