Class DruidSecondaryModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class DruidSecondaryModule
    extends Object
    implements com.google.inject.Module
    • 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 interface com.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)