@Factory
public class XmlMapperFactory
extends java.lang.Object
XmlMapper
.
The factory mostly duplicates ObjectMapperFactory
with the only difference that it creates
object mappers dedicated for xml processing and avoid some json specific configuration that might have been done inside
of ObjectMapperFactory
.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] |
beanDeserializerModifiers |
protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] |
beanSerializerModifiers |
protected com.fasterxml.jackson.databind.JsonDeserializer[] |
deserializers |
protected com.fasterxml.jackson.databind.Module[] |
jacksonModules |
protected com.fasterxml.jackson.databind.JsonSerializer[] |
serializers |
Constructor and Description |
---|
XmlMapperFactory() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.dataformat.xml.XmlMapper |
xmlMapper(io.micronaut.jackson.JacksonConfiguration jacksonConfiguration,
JacksonXmlConfiguration xmlConfiguration)
Builds the core Jackson
ObjectMapper from the optional configuration and JsonFactory . |
@Inject protected com.fasterxml.jackson.databind.Module[] jacksonModules
@Inject protected com.fasterxml.jackson.databind.JsonSerializer[] serializers
@Inject protected com.fasterxml.jackson.databind.JsonDeserializer[] deserializers
@Inject protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] beanSerializerModifiers
@Inject protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] beanDeserializerModifiers
@Singleton @Named(value="xml") public com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper(@Nullable io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, @Nullable JacksonXmlConfiguration xmlConfiguration)
ObjectMapper
from the optional configuration and JsonFactory
.jacksonConfiguration
- The configurationxmlConfiguration
- The XML configurationObjectMapper