public class ObjectMapperModule
extends java.lang.Object
implements com.google.inject.Module
Modifier and Type | Class and Description |
---|---|
private static class |
ObjectMapperModule.ObjectMapperProvider |
Modifier and Type | Field and Description |
---|---|
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 com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> |
objectMapperKey |
private java.lang.Class<? extends java.lang.annotation.Annotation> |
scope |
Constructor and Description |
---|
ObjectMapperModule() |
ObjectMapperModule(java.lang.annotation.Annotation annotation) |
ObjectMapperModule(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
ObjectMapperModule(com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey) |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
ObjectMapperModule |
in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation) |
ObjectMapperModule |
registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz) |
ObjectMapperModule |
registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz,
java.lang.annotation.Annotation annotation) |
ObjectMapperModule |
registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
ObjectMapperModule |
registerModule(com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module> key) |
ObjectMapperModule |
registerModule(com.fasterxml.jackson.databind.Module module) |
ObjectMapperModule |
withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper m) |
private final java.util.List<com.fasterxml.jackson.databind.Module> modulesToAdd
private final java.util.List<com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module>> modulesToInject
private final com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey
private com.fasterxml.jackson.databind.ObjectMapper objectMapper
private java.lang.Class<? extends java.lang.annotation.Annotation> scope
public ObjectMapperModule()
public ObjectMapperModule(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public ObjectMapperModule(java.lang.annotation.Annotation annotation)
public ObjectMapperModule(com.google.inject.Key<com.fasterxml.jackson.databind.ObjectMapper> objectMapperKey)
public ObjectMapperModule in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
public ObjectMapperModule registerModule(com.fasterxml.jackson.databind.Module module)
public ObjectMapperModule registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz)
public ObjectMapperModule registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public ObjectMapperModule registerModule(java.lang.Class<? extends com.fasterxml.jackson.databind.Module> clazz, java.lang.annotation.Annotation annotation)
public ObjectMapperModule registerModule(com.google.inject.Key<? extends com.fasterxml.jackson.databind.Module> key)
public ObjectMapperModule withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper m)
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module