Class ObjectMapperModule.ObjectMapperProvider
- java.lang.Object
-
- com.fasterxml.jackson.module.guice.ObjectMapperModule.ObjectMapperProvider
-
- All Implemented Interfaces:
com.google.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()
-
-
-
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
-
-
Method Detail
-
configure
@Inject public void configure(com.google.inject.Injector inj)
-
get
public com.fasterxml.jackson.databind.ObjectMapper get()
- Specified by:
get
in interfacecom.google.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
- Specified by:
get
in interfacejavax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
-
-