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>
,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 Object
implements com.google.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.inject.Injector
private final List
<com.fasterxml.jackson.databind.Module> private final List
<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> private final com.fasterxml.jackson.databind.ObjectMapper
private final List
<com.google.inject.Provider<? extends com.fasterxml.jackson.databind.Module>> -
Constructor Summary
ConstructorsConstructorDescriptionObjectMapperProvider
(List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject, List<com.fasterxml.jackson.databind.Module> modulesToAdd, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
-
Field Details
-
modulesToInject
private final List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject -
modulesToAdd
-
providedModules
private final 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 Details
-
ObjectMapperProvider
-
-
Method Details
-
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 interfacejakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
- Specified by:
get
in interfacejavax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
-