eventuate-tram / eventuate-tram-core

Transactional messaging for microservices
Other
1.02k stars 186 forks source link

Make ObjectMapper injectable #12

Open micrf opened 6 years ago

micrf commented 6 years ago

I couldn't find a way to deserialize more complex types like org.javamoney.moneta.Money. I would be better to inject JSonMapper and ObjectMapper in JSonMapper so that Jackson MixIns can be used.

cer commented 6 years ago

You have access to the ObjectMapper via JSonMapper.objectMapper: https://github.com/eventuate-clients/eventuate-client-java/blob/master/eventuate-client-java-common-impl/src/main/java/io/eventuate/javaclient/commonimpl/JSonMapper.java

Does that enable you to customize it?

aborocz commented 1 year ago

Hi, I'd like to request this too, it's way more sophisticated then accessing a static variable. Thanks!