Package org.apache.druid.guice
Class DruidSecondaryModule
java.lang.Object
org.apache.druid.guice.DruidSecondaryModule
- All Implemented Interfaces:
com.google.inject.Module
-
Constructor Summary
ConstructorsConstructorDescriptionDruidSecondaryModule(Properties properties, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper jsonMapperOnlyNonNullValueSerialization, com.fasterxml.jackson.databind.ObjectMapper smileMapper, javax.validation.Validator validator) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) com.fasterxml.jackson.databind.ObjectMappergetJsonMapper(com.google.inject.Injector injector) com.fasterxml.jackson.databind.ObjectMappergetJsonMapperOnlyNonNullValueSerialization(com.google.inject.Injector injector) com.fasterxml.jackson.databind.ObjectMappergetSmileMapper(com.google.inject.Injector injector) static voidsetupAnnotationIntrospector(com.fasterxml.jackson.databind.ObjectMapper mapper, com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector) static voidsetupJackson(com.google.inject.Injector injector, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Constructor Details
-
DruidSecondaryModule
@Inject public DruidSecondaryModule(Properties properties, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper jsonMapperOnlyNonNullValueSerialization, com.fasterxml.jackson.databind.ObjectMapper smileMapper, javax.validation.Validator validator)
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein 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)
-