ProblemErrorResponseProcessor
@Deprecated
public class ThrowableProblemObjectMapperBeanCreatedEventListener
extends java.lang.Object
implements io.micronaut.context.event.BeanCreatedEventListener<com.fasterxml.jackson.databind.ObjectMapper>
ProblemConfiguration.isStackTrace()
returns false adds the mixin MixInThrowableProblem
for class ThrowableProblem
to the ObjectMapper
.Constructor and Description |
---|
ThrowableProblemObjectMapperBeanCreatedEventListener(ProblemConfiguration problemConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.ObjectMapper |
onCreated(io.micronaut.context.event.BeanCreatedEvent<com.fasterxml.jackson.databind.ObjectMapper> event)
Deprecated.
|
public ThrowableProblemObjectMapperBeanCreatedEventListener(ProblemConfiguration problemConfiguration)
problemConfiguration
- Problem Configurationpublic com.fasterxml.jackson.databind.ObjectMapper onCreated(io.micronaut.context.event.BeanCreatedEvent<com.fasterxml.jackson.databind.ObjectMapper> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<com.fasterxml.jackson.databind.ObjectMapper>