Class JacksonEventSerializer
java.lang.Object
org.springframework.modulith.events.jackson.JacksonEventSerializer
- All Implemented Interfaces:
org.springframework.modulith.events.core.EventSerializer
class JacksonEventSerializer
extends Object
implements org.springframework.modulith.events.core.EventSerializer
A Jackson-based
EventSerializer.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonEventSerializer(Supplier<tools.jackson.databind.json.JsonMapper> mapper) Creates a newJacksonEventSerializerfor the givenJsonMapper. -
Method Summary
-
Constructor Details
-
JacksonEventSerializer
Creates a newJacksonEventSerializerfor the givenJsonMapper.- Parameters:
mapper- must not be null.
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceorg.springframework.modulith.events.core.EventSerializer
-
deserialize
- Specified by:
deserializein interfaceorg.springframework.modulith.events.core.EventSerializer
-