Class SmileMapperConfigurator
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<SmileMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
- com.fasterxml.jackson.jakarta.rs.smile.SmileMapperConfigurator
-
public class SmileMapperConfigurator extends MapperConfiguratorBase<SmileMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
Helper class used to encapsulate details of configuring anObjectMapper
instance to be used for data binding, as well as accessing it.
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase
_defaultAnnotationsToUse, _defaultMapper, _mapper, _xmlBindIntrospectorClass
-
-
Constructor Summary
Constructors Constructor Description SmileMapperConfigurator(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.ObjectMapper
getConfiguredMapper()
Method that locates, configures and returnsObjectMapper
to usecom.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.-
Methods inherited from class com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
-
-
-
-
Constructor Detail
-
SmileMapperConfigurator
public SmileMapperConfigurator(com.fasterxml.jackson.databind.ObjectMapper mapper, Annotations[] defAnnotations)
-
-
Method Detail
-
getConfiguredMapper
public com.fasterxml.jackson.databind.ObjectMapper getConfiguredMapper()
Method that locates, configures and returnsObjectMapper
to use- Specified by:
getConfiguredMapper
in classMapperConfiguratorBase<SmileMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
getDefaultMapper
public com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()
- Specified by:
getDefaultMapper
in classMapperConfiguratorBase<SmileMapperConfigurator,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<SmileMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
- Specified by:
_resolveIntrospectors
in classMapperConfiguratorBase<SmileMapperConfigurator,com.fasterxml.jackson.databind.ObjectMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-
-