-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ObjectMapper configuration for async event handling
- Loading branch information
1 parent
6ae5e30
commit 506e4b7
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/resources/entry-point/async-event-handler/object-mapper-config.java.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{#eda}} | ||
package co.com.bancolombia.events; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import org.reactivecommons.async.commons.converters.json.ObjectMapperSupplier; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class ObjectMapperConfig { | ||
@Bean | ||
public ObjectMapper objectMapper(ObjectMapperSupplier supplier) { | ||
return supplier.get(); | ||
} | ||
} | ||
{{/eda}} | ||
{{^eda}} | ||
// This configuration is only available when 'eda' is enabled | ||
// package co.com.bancolombia.events; | ||
// | ||
// import com.fasterxml.jackson.databind.ObjectMapper; | ||
// import org.reactivecommons.async.commons.converters.json.ObjectMapperSupplier; | ||
// import org.springframework.context.annotation.Bean; | ||
// import org.springframework.context.annotation.Configuration; | ||
// | ||
// @Configuration | ||
// public class ObjectMapperConfig { | ||
// | ||
// @Bean | ||
// public ObjectMapper objectMapper(ObjectMapperSupplier supplier) { | ||
// return supplier.get(); | ||
// } | ||
// } | ||
{{/eda}} |