@Factory public class ObjectMapperFactory extends java.lang.Object
ObjectMapper
.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] |
beanDeserializerModifiers |
protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] |
beanSerializerModifiers |
protected com.fasterxml.jackson.databind.JsonDeserializer[] |
deserializers |
protected com.fasterxml.jackson.databind.Module[] |
jacksonModules |
protected com.fasterxml.jackson.databind.KeyDeserializer[] |
keyDeserializers |
static java.lang.String |
MICRONAUT_MODULE
Name for Micronaut module.
|
protected com.fasterxml.jackson.databind.JsonSerializer[] |
serializers |
Constructor and Description |
---|
ObjectMapperFactory() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper(JacksonConfiguration jacksonConfiguration,
com.fasterxml.jackson.core.JsonFactory jsonFactory)
Builds the core Jackson
ObjectMapper from the optional configuration and JsonFactory . |
public static final java.lang.String MICRONAUT_MODULE
@Inject protected com.fasterxml.jackson.databind.Module[] jacksonModules
@Inject protected com.fasterxml.jackson.databind.JsonSerializer[] serializers
@Inject protected com.fasterxml.jackson.databind.JsonDeserializer[] deserializers
@Inject protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] beanSerializerModifiers
@Inject protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] beanDeserializerModifiers
@Inject protected com.fasterxml.jackson.databind.KeyDeserializer[] keyDeserializers
@Singleton @Primary @Named(value="json") public com.fasterxml.jackson.databind.ObjectMapper objectMapper(@Nullable JacksonConfiguration jacksonConfiguration, @Nullable com.fasterxml.jackson.core.JsonFactory jsonFactory)
ObjectMapper
from the optional configuration and JsonFactory
.jacksonConfiguration
- The configurationjsonFactory
- The JSON factoryObjectMapper