Class ObjectMapperAutoConfiguration

java.lang.Object
org.axonframework.extension.springboot.autoconfig.ObjectMapperAutoConfiguration

@AutoConfiguration @AutoConfigureBefore({AxonAutoConfiguration.class,CBORMapperAutoConfiguration.class}) @AutoConfigureAfter(name="org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration") @ConditionalOnClass(name="com.fasterxml.jackson.databind.ObjectMapper") @EnableConfigurationProperties(ConverterProperties.class) public class ObjectMapperAutoConfiguration extends Object
Autoconfiguration that constructs a default ObjectMapper, typically to be used by a JacksonConverter.
Since:
3.4.0
Author:
Steven van Beelen
  • Constructor Details

    • ObjectMapperAutoConfiguration

      public ObjectMapperAutoConfiguration()
  • Method Details

    • defaultAxonObjectMapper

      @Bean("defaultAxonObjectMapper") @ConditionalOnMissingBean @Conditional(org.axonframework.extension.springboot.autoconfig.ObjectMapperAutoConfiguration.JacksonConfiguredCondition.class) public com.fasterxml.jackson.databind.ObjectMapper defaultAxonObjectMapper()
      Returns the default Axon Framework ObjectMapper, if required.

      This ObjectMapper bean is only created when there is no other ObjectMapper bean present and whenever the user specified either the ConverterProperties.ConverterType.DEFAULT or ConverterProperties.ConverterType.JACKSON ConverterType.

      Returns:
      The default Axon Framework ObjectMapper, if required.