Class CBORMapperAutoConfiguration
java.lang.Object
org.axonframework.extension.springboot.autoconfig.CBORMapperAutoConfiguration
@AutoConfiguration
@AutoConfigureBefore(ConverterAutoConfiguration.class)
@ConditionalOnClass(name="com.fasterxml.jackson.dataformat.cbor.databind.CBORMapper")
@EnableConfigurationProperties(ConverterProperties.class)
public class CBORMapperAutoConfiguration
extends Object
Autoconfiguration that constructs a default
CBORMapper, typically to be used by a
JacksonConverter.- Since:
- 4.9.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.dataformat.cbor.databind.CBORMapperReturns the default Axon FrameworkCBORMapper, if required.
-
Constructor Details
-
CBORMapperAutoConfiguration
public CBORMapperAutoConfiguration()
-
-
Method Details
-
defaultAxonCborMapper
@Bean("defaultAxonCborMapper") @ConditionalOnMissingBean(com.fasterxml.jackson.dataformat.cbor.databind.CBORMapper.class) @ConditionalOnExpression("\'${axon.converter.general}\' == \'cbor\' || \'${axon.converter.events}\' == \'cbor\' || \'${axon.converter.messages}\' == \'cbor\'") public com.fasterxml.jackson.dataformat.cbor.databind.CBORMapper defaultAxonCborMapper()Returns the default Axon FrameworkCBORMapper, if required.This
CBORMapperbean is only created when there is no otherCBORMapperbean present and whenever the user specified theConverterProperties.ConverterType.CBORConverterType.- Returns:
- The default Axon Framework
CBORMapper, if required.
-