Package com.fasterxml.jackson.jaxrs.xml
Class XMLMapperConfigurator
java.lang.Object
com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
com.fasterxml.jackson.jaxrs.xml.XMLMapperConfigurator
public class XMLMapperConfigurator
extends MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
Helper class used to encapsulate details of configuring an
XmlMapper instance to be used for data binding, as
well as accessing it.-
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase
_defaultAnnotationsToUse, _defaultMapper, _jaxbIntrospectorClass, _mapper -
Constructor Summary
ConstructorsConstructorDescriptionXMLMapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper, Annotations[] defAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.AnnotationIntrospectorprotected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospectors(Annotations[] annotationsToUse) com.fasterxml.jackson.dataformat.xml.XmlMapperMethod that locates, configures and returnsXmlMapperto useprotected com.fasterxml.jackson.dataformat.xml.JacksonXmlModulecom.fasterxml.jackson.dataformat.xml.XmlMapperprotected com.fasterxml.jackson.dataformat.xml.XmlMappermapper()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.jaxrs.cfg.MapperConfiguratorBase
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
-
Field Details
-
_lock
-
-
Constructor Details
-
XMLMapperConfigurator
public XMLMapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper, Annotations[] defAnnotations)
-
-
Method Details
-
getConfiguredMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getConfiguredMapper()Method that locates, configures and returnsXmlMapperto use- Specified by:
getConfiguredMapperin classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
getDefaultMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getDefaultMapper()- Specified by:
getDefaultMapperin 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:
mapperin classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse) - Specified by:
_resolveIntrospectorsin classMapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-