Class ObjectMapperModule.ObjectMapperProvider

  • All Implemented Interfaces:
    com.google.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>, jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>, javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
    Enclosing class:
    ObjectMapperModule

    private static class ObjectMapperModule.ObjectMapperProvider
    extends java.lang.Object
    implements com.google.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.inject.Injector injector  
      private java.util.List<com.fasterxml.jackson.databind.Module> modulesToAdd  
      private java.util.List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject  
      private com.fasterxml.jackson.databind.ObjectMapper objectMapper  
      private java.util.List<com.google.inject.Provider<? extends com.fasterxml.jackson.databind.Module>> providedModules  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectMapperProvider​(java.util.List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject, java.util.List<com.fasterxml.jackson.databind.Module> modulesToAdd, com.fasterxml.jackson.databind.ObjectMapper mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(com.google.inject.Injector inj)  
      com.fasterxml.jackson.databind.ObjectMapper get()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modulesToInject

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

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

        private final java.util.List<com.google.inject.Provider<? extends com.fasterxml.jackson.databind.Module>> providedModules
      • injector

        private com.google.inject.Injector injector
      • objectMapper

        private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • ObjectMapperProvider

        public ObjectMapperProvider​(java.util.List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject,
                                    java.util.List<com.fasterxml.jackson.databind.Module> modulesToAdd,
                                    com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • configure

        @Inject
        public void configure​(com.google.inject.Injector inj)
      • get

        public com.fasterxml.jackson.databind.ObjectMapper get()
        Specified by:
        get in interface com.google.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
        Specified by:
        get in interface jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
        Specified by:
        get in interface javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>