Class XMLMapperConfigurator
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
- com.fasterxml.jackson.jakarta.rs.xml.XMLMapperConfigurator
-
public class XMLMapperConfigurator extends MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
Helper class used to encapsulate details of configuring anXmlMapper
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 XMLMapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper 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.dataformat.xml.XmlMapper
getConfiguredMapper()
Method that locates, configures and returnsXmlMapper
to useprotected com.fasterxml.jackson.dataformat.xml.JacksonXmlModule
getConfiguredModule()
com.fasterxml.jackson.dataformat.xml.XmlMapper
getDefaultMapper()
protected com.fasterxml.jackson.dataformat.xml.XmlMapper
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
-
XMLMapperConfigurator
public XMLMapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper, Annotations[] defAnnotations)
-
-
Method Detail
-
getConfiguredMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getConfiguredMapper()
Method that locates, configures and returnsXmlMapper
to use- Specified by:
getConfiguredMapper
in classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
getDefaultMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getDefaultMapper()
- Specified by:
getDefaultMapper
in classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
getConfiguredModule
protected com.fasterxml.jackson.dataformat.xml.JacksonXmlModule getConfiguredModule()
-
mapper
protected com.fasterxml.jackson.dataformat.xml.XmlMapper 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<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
- Specified by:
_resolveIntrospectors
in classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-
-