Class ConverterProperties

java.lang.Object
org.axonframework.extension.springboot.ConverterProperties

@ConfigurationProperties("axon.converter") public class ConverterProperties extends Object
A group of properties that allows easy configuration of the Converters used for different types of objects that Axon needs to convert.

The general Converter forms the baseline and is used to convert all objects that do not fall into more specific categories. Typical examples include snapshots and other internal data that is not expected to be shared with other systems. If no general Converter is specified, Axon defaults to the JacksonConverter.

The messages Converter, if specified, takes precedence over the general converter for all Messages and, where relevant, their return values. This includes commands, queries, and events, as well as CommandResultMessages and QueryResponseMessages. To ensure the messages Converter only applies to messages, it is wrapped in a DelegatingMessageConverter. When no message Converter is specified, it defaults back to the general converter.

The events Converter, if specified, takes precedence over both the messages and general converters, but applies only to the EventMessages stored in the event store and published on the event bus. To ensure it only applies to event messages, it is wrapped in a DelegatingEventConverter. When no event Converter is specified, it defaults back to the messages converter.

Since:
3.2.0
Author:
Allard Buijze, Steven van Beelen