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 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.core.JsonFactory |
jsonFactory(JacksonConfiguration jacksonConfiguration)
Builds default Factory
JsonFactory using properties from JacksonConfiguration . |
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 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
@Requires(beans=JacksonConfiguration.class) @Singleton public com.fasterxml.jackson.core.JsonFactory jsonFactory(JacksonConfiguration jacksonConfiguration)
JsonFactory
using properties from JacksonConfiguration
.jacksonConfiguration
- The configurationJsonFactory
@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