Package org.apache.druid.guice
Class DruidSecondaryModule
- java.lang.Object
-
- org.apache.druid.guice.DruidSecondaryModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class DruidSecondaryModule extends Object implements com.google.inject.Module
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DruidSecondaryModule
@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)
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configure
in interfacecom.google.inject.Module
-
getJsonMapper
@Provides public com.fasterxml.jackson.databind.ObjectMapper getJsonMapper(com.google.inject.Injector injector)
-
getJsonMapperOnlyNonNullValueSerialization
@Provides public com.fasterxml.jackson.databind.ObjectMapper getJsonMapperOnlyNonNullValueSerialization(com.google.inject.Injector injector)
-
getSmileMapper
@Provides public com.fasterxml.jackson.databind.ObjectMapper getSmileMapper(com.google.inject.Injector injector)
-
setupJackson
public static void setupJackson(com.google.inject.Injector injector, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
setupAnnotationIntrospector
public static void setupAnnotationIntrospector(com.fasterxml.jackson.databind.ObjectMapper mapper, com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector)
-
-