Class ObjectMapperCustomizer
java.lang.Object
io.micronaut.gcp.function.http.jackson.ObjectMapperCustomizer
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<com.fasterxml.jackson.databind.ObjectMapper>
,EventListener
@Requires(classes=io.micronaut.jackson.JacksonConfiguration.class)
@Singleton
public class ObjectMapperCustomizer
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<com.fasterxml.jackson.databind.ObjectMapper>
Customizes the jackson object mapper to ensure essential modules are registered.
- Since:
- 1.2.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
onCreated
(io.micronaut.context.event.BeanCreatedEvent<com.fasterxml.jackson.databind.ObjectMapper> event)
-
Constructor Details
-
ObjectMapperCustomizer
public ObjectMapperCustomizer()
-
-
Method Details
-
onCreated
public com.fasterxml.jackson.databind.ObjectMapper onCreated(io.micronaut.context.event.BeanCreatedEvent<com.fasterxml.jackson.databind.ObjectMapper> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<com.fasterxml.jackson.databind.ObjectMapper>
-