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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapperReturns the default Axon FrameworkObjectMapper, if required.
-
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 FrameworkObjectMapper, if required.This
ObjectMapperbean is only created when there is no otherObjectMapperbean present and whenever the user specified either theConverterProperties.ConverterType.DEFAULTorConverterProperties.ConverterType.JACKSONConverterType.- Returns:
- The default Axon Framework
ObjectMapper, if required.
-