Enum Class ConverterProperties.ConverterType
java.lang.Object
java.lang.Enum<ConverterProperties.ConverterType>
org.axonframework.extension.springboot.ConverterProperties.ConverterType
- All Implemented Interfaces:
Serializable,Comparable<ConverterProperties.ConverterType>,Constable
- Enclosing class:
ConverterProperties
public static enum ConverterProperties.ConverterType
extends Enum<ConverterProperties.ConverterType>
Enumerates different possible standard
Converters available in
Axon Framework.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses Avro-basedConverterto convert objects into bytes as specified by Avro Specification using single object encoding.Uses Jackson'sCBORMapperto convert objects into CBOR.Defines that the default serializer should be used.Uses Jackson'sObjectMapperto convert objects into JSON. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConverterProperties.ConverterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVRO
Uses Avro-basedConverterto convert objects into bytes as specified by Avro Specification using single object encoding. -
CBOR
-
JACKSON
Uses Jackson'sObjectMapperto convert objects into JSON.Provides highly interoperable JSON output, but does require the objects to adhere to a certain structure. The Jackson based serializer is generally suitable as a messages
Converter. -
DEFAULT
Defines that the default serializer should be used.For the general
Converter, this means theJacksonConverteris used. For the messagesConverter, this means the generalConverteris used. Similarly, the eventsConverterwill default to the messagesConverter(or the generalConverterif the messagesConverterhas not been specified).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-