Class XmlMapperFactory

java.lang.Object
io.micronaut.xml.jackson.server.convert.XmlMapperFactory

@Factory public class XmlMapperFactory extends Object
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 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 configuration
      xmlConfiguration - The XML-specific configuration
      Returns:
      A configured XmlMapper