Class XmlMapperFactory
- java.lang.Object
-
- io.micronaut.xml.jackson.server.convert.XmlMapperFactory
-
@Factory public class XmlMapperFactory extends java.lang.ObjectFactory bean for creating the JacksonXmlMapper. The factory mostly duplicatesObjectMapperFactorywith the only difference that it creates object mappers dedicated for xml processing and avoid some json specific configuration that might have been done inside ofObjectMapperFactory.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[]beanDeserializerModifiersprotected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[]beanSerializerModifiersprotected com.fasterxml.jackson.databind.JsonDeserializer[]deserializersprotected com.fasterxml.jackson.databind.Module[]jacksonModulesprotected com.fasterxml.jackson.databind.JsonSerializer[]serializers
-
Constructor Summary
Constructors Constructor Description XmlMapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.dataformat.xml.XmlMapperxmlMapper(io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, JacksonXmlConfiguration xmlConfiguration)Builds the core JacksonObjectMapperfrom the optional configuration andJsonFactory.
-
-
-
Field Detail
-
jacksonModules
@Inject protected com.fasterxml.jackson.databind.Module[] jacksonModules
-
serializers
@Inject protected com.fasterxml.jackson.databind.JsonSerializer[] serializers
-
deserializers
@Inject protected com.fasterxml.jackson.databind.JsonDeserializer[] deserializers
-
beanSerializerModifiers
@Inject protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] beanSerializerModifiers
-
beanDeserializerModifiers
@Inject protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] beanDeserializerModifiers
-
-
Method Detail
-
xmlMapper
@Singleton @Named("xml") public com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper(@Nullable io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, @Nullable JacksonXmlConfiguration xmlConfiguration)Builds the core JacksonObjectMapperfrom the optional configuration andJsonFactory.- Parameters:
jacksonConfiguration- The configurationxmlConfiguration- The XML configuration- Returns:
- The
ObjectMapper
-
-