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