Class ObjectMapperModule
java.lang.Object
com.fasterxml.jackson.module.guice.ObjectMapperModule
- All Implemented Interfaces:
com.google.inject.Module
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<com.fasterxml.jackson.databind.Module> private final List
<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> private com.fasterxml.jackson.databind.ObjectMapper
private final com.google.inject.Key
<com.fasterxml.jackson.databind.ObjectMapper> private Class
<? extends Annotation> -
Constructor Summary
ConstructorsConstructorDescriptionObjectMapperModule
(com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey) ObjectMapperModule
(Annotation annotation) ObjectMapperModule
(Class<? extends Annotation> annotation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(com.google.inject.Binder binder) in
(Class<? extends Annotation> scopeAnnotation) registerModule
(com.fasterxml.jackson.databind.Module module) registerModule
(com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module> key) registerModule
(Class<? extends com.fasterxml.jackson.databind.Module> clazz) registerModule
(Class<? extends com.fasterxml.jackson.databind.Module> clazz, Annotation annotation) registerModule
(Class<? extends com.fasterxml.jackson.databind.Module> clazz, Class<? extends Annotation> annotation) withObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper m)
-
Field Details
-
modulesToAdd
-
modulesToInject
private final 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
-
-
Constructor Details
-
ObjectMapperModule
public ObjectMapperModule() -
ObjectMapperModule
-
ObjectMapperModule
-
ObjectMapperModule
public ObjectMapperModule(com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey)
-
-
Method Details
-
in
-
registerModule
-
registerModule
public ObjectMapperModule registerModule(Class<? extends com.fasterxml.jackson.databind.Module> clazz) -
registerModule
public ObjectMapperModule registerModule(Class<? extends com.fasterxml.jackson.databind.Module> clazz, Class<? extends Annotation> annotation) -
registerModule
public ObjectMapperModule registerModule(Class<? extends com.fasterxml.jackson.databind.Module> clazz, Annotation annotation) -
registerModule
public ObjectMapperModule registerModule(com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module> key) -
withObjectMapper
- 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 interfacecom.google.inject.Module
-