Class XmlMapperFactory
java.lang.Object
io.micronaut.xml.jackson.server.convert.XmlMapperFactory
Factory bean for creating the Jackson
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.- Since:
- 1.0.0
- Author:
- Sergey Vishnyakov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected tools.jackson.databind.deser.ValueDeserializerModifier[]protected tools.jackson.databind.ser.ValueSerializerModifier[]protected io.micronaut.core.convert.ConversionServiceprotected tools.jackson.databind.ValueDeserializer[]protected tools.jackson.databind.JacksonModule[]protected tools.jackson.databind.KeyDeserializer[]protected tools.jackson.databind.ValueSerializer[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.dataformat.xml.XmlMapperxmlMapper(@Nullable io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, @Nullable JacksonXmlConfiguration xmlConfiguration) Factory method to create the XmlMapper.
-
Field Details
-
conversionService
@Inject protected io.micronaut.core.convert.ConversionService conversionService -
jacksonModules
@Inject protected tools.jackson.databind.JacksonModule[] jacksonModules -
serializers
@Inject protected tools.jackson.databind.ValueSerializer[] serializers -
deserializers
@Inject protected tools.jackson.databind.ValueDeserializer[] deserializers -
beanSerializerModifiers
@Inject protected tools.jackson.databind.ser.ValueSerializerModifier[] beanSerializerModifiers -
beanDeserializerModifiers
@Inject protected tools.jackson.databind.deser.ValueDeserializerModifier[] beanDeserializerModifiers -
keyDeserializers
@Inject protected tools.jackson.databind.KeyDeserializer[] keyDeserializers
-
-
Constructor Details
-
XmlMapperFactory
public XmlMapperFactory()
-
-
Method Details
-
xmlMapper
@Singleton @Named("xml") public tools.jackson.dataformat.xml.XmlMapper xmlMapper(@Nullable io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, @Nullable JacksonXmlConfiguration xmlConfiguration) Factory method to create the XmlMapper.- Parameters:
jacksonConfiguration- The general Jackson configurationxmlConfiguration- The XML-specific configuration- Returns:
- A configured XmlMapper
-