Class ObjectMapperModule

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

    public class ObjectMapperModule
    extends java.lang.Object
    implements com.google.inject.Module
    • Field Detail

      • modulesToAdd

        private final java.util.List<com.fasterxml.jackson.databind.Module> modulesToAdd
      • modulesToInject

        private final java.util.List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject
      • objectMapperKey

        private final com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey
      • objectMapper

        private com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • scope

        private java.lang.Class<? extends java.lang.annotation.Annotation> scope
    • Constructor Detail

      • ObjectMapperModule

        public ObjectMapperModule()
      • ObjectMapperModule

        public ObjectMapperModule​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      • ObjectMapperModule

        public ObjectMapperModule​(java.lang.annotation.Annotation annotation)
      • ObjectMapperModule

        public ObjectMapperModule​(com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey)
    • Method Detail

      • in

        public ObjectMapperModule in​(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
      • registerModule

        public ObjectMapperModule registerModule​(com.fasterxml.jackson.databind.Module module)
      • registerModule

        public ObjectMapperModule registerModule​(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz)
      • registerModule

        public ObjectMapperModule registerModule​(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz,
                                                 java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      • registerModule

        public ObjectMapperModule registerModule​(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz,
                                                 java.lang.annotation.Annotation annotation)
      • registerModule

        public ObjectMapperModule registerModule​(com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module> key)
      • withObjectMapper

        public ObjectMapperModule withObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper m)
        Parameters:
        m - ObjectMapper to use for newly constructed module
        Since:
        2.8
      • configure

        public void configure​(com.google.inject.Binder binder)
        Specified by:
        configure in interface com.google.inject.Module