Class JacksonEventSerializationConfiguration
java.lang.Object
org.springframework.modulith.events.jackson.JacksonEventSerializationConfiguration
- All Implemented Interfaces:
EventSerializationConfigurationExtension
@AutoConfiguration
@AutoConfigureBefore(name="org.springframework.modulith.events.jackson2.Jackson2EventSerializationConfiguration")
@ConditionalOnClass(tools.jackson.databind.json.JsonMapper.class)
@ConditionalOnMissingBean(EventSerializer.class)
class JacksonEventSerializationConfiguration
extends Object
implements EventSerializationConfigurationExtension
Application configuration to register a Jackson 3-based
EventSerializer.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonEventSerializationConfiguration(ObjectProvider<tools.jackson.databind.json.JsonMapper> mapper, ApplicationContext context) Creates a newJacksonEventSerializationConfigurationfor the givenJsonMapperandApplicationContext. -
Method Summary
-
Constructor Details
-
JacksonEventSerializationConfiguration
public JacksonEventSerializationConfiguration(ObjectProvider<tools.jackson.databind.json.JsonMapper> mapper, ApplicationContext context) Creates a newJacksonEventSerializationConfigurationfor the givenJsonMapperandApplicationContext.- Parameters:
mapper- must not be null.context- must not be null.
-
-
Method Details
-
jacksonEventSerializer
-