public class DruidSecondaryModule extends Object implements com.google.inject.Module
Constructor and Description |
---|
DruidSecondaryModule(Properties properties,
org.skife.config.ConfigurationObjectFactory factory,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.fasterxml.jackson.databind.ObjectMapper jsonMapperOnlyNonNullValueSerialization,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
javax.validation.Validator validator) |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
com.fasterxml.jackson.databind.ObjectMapper |
getJsonMapper(com.google.inject.Injector injector) |
com.fasterxml.jackson.databind.ObjectMapper |
getJsonMapperOnlyNonNullValueSerialization(com.google.inject.Injector injector) |
com.fasterxml.jackson.databind.ObjectMapper |
getSmileMapper(com.google.inject.Injector injector) |
static void |
setupAnnotationIntrospector(com.fasterxml.jackson.databind.ObjectMapper mapper,
com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector) |
static void |
setupJackson(com.google.inject.Injector injector,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
@Inject public DruidSecondaryModule(Properties properties, org.skife.config.ConfigurationObjectFactory factory, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper jsonMapperOnlyNonNullValueSerialization, com.fasterxml.jackson.databind.ObjectMapper smileMapper, javax.validation.Validator validator)
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
@Provides public com.fasterxml.jackson.databind.ObjectMapper getJsonMapper(com.google.inject.Injector injector)
@Provides public com.fasterxml.jackson.databind.ObjectMapper getJsonMapperOnlyNonNullValueSerialization(com.google.inject.Injector injector)
@Provides public com.fasterxml.jackson.databind.ObjectMapper getSmileMapper(com.google.inject.Injector injector)
public static void setupJackson(com.google.inject.Injector injector, com.fasterxml.jackson.databind.ObjectMapper mapper)
public static void setupAnnotationIntrospector(com.fasterxml.jackson.databind.ObjectMapper mapper, com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.