Top Inners Fields Constructors Methods
com.fasterxml.jackson.module.guice

public Class ObjectMapperModule

extends Object
implements Module
Class Inheritance
All Implemented Interfaces
com.google.inject.Module
Imports
java.lang.annotation.Annotation, java.util.ArrayList, .List, com.fasterxml.jackson.databind.Module, .ObjectMapper, com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair, com.google.inject.Binder, .Inject, .Injector, .Key, .Provider, com.google.inject.binder.ScopedBindingBuilder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final List<Module>
private final List<Key<? extends Module>>
private ObjectMapper
private final Key<ObjectMapper>
private Class<? extends Annotation>

Constructor Summary

AccessConstructor and Description
public
public
ObjectMapperModule(Class<? extends Annotation> annotation)

public
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(Binder binder)

Implements com.google.inject.Module.configure.

Contributes bindings and other configurations for this module to binder.

public ObjectMapperModule
in(Class<? extends Annotation> scopeAnnotation)

public ObjectMapperModule
public ObjectMapperModule
registerModule(Class<? extends Module> clazz)

public ObjectMapperModule
registerModule(Class<? extends Module> clazz, Class<? extends Annotation> annotation)

public ObjectMapperModule
registerModule(Class<? extends Module> clazz, Annotation annotation)

public ObjectMapperModule
registerModule(Key<? extends Module> key)

public ObjectMapperModule
withObjectMapper(ObjectMapper
ObjectMapper to use for newly constructed module
m
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

modulesToAddback to summary
private final List<Module> modulesToAdd
modulesToInjectback to summary
private final List<Key<? extends Module>> modulesToInject
objectMapperback to summary
private ObjectMapper objectMapper
objectMapperKeyback to summary
private final Key<ObjectMapper> objectMapperKey
scopeback to summary
private Class<? extends Annotation> scope

Constructor Detail

ObjectMapperModuleback to summary
public ObjectMapperModule()
ObjectMapperModuleback to summary
public ObjectMapperModule(Class<? extends Annotation> annotation)
ObjectMapperModuleback to summary
public ObjectMapperModule(Annotation annotation)
ObjectMapperModuleback to summary
public ObjectMapperModule(Key<ObjectMapper> objectMapperKey)

Method Detail

configureback to summary
public void configure(Binder binder)

Implements com.google.inject.Module.configure.

Doc from com.google.inject.Module.configure.

Contributes bindings and other configurations for this module to binder.

Do not invoke this method directly to install submodules. Instead use Binder#install(Module), which ensures that provider methods are discovered.

Annotations
@Override
inback to summary
public ObjectMapperModule in(Class<? extends Annotation> scopeAnnotation)
registerModuleback to summary
public ObjectMapperModule registerModule(Module module)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends Module> clazz)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends Module> clazz, Class<? extends Annotation> annotation)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends Module> clazz, Annotation annotation)
registerModuleback to summary
public ObjectMapperModule registerModule(Key<? extends Module> key)
withObjectMapperback to summary
public ObjectMapperModule withObjectMapper(ObjectMapper m)
Parameters
m:ObjectMapper

ObjectMapper to use for newly constructed module

Since
2.8
com.fasterxml.jackson.module.guice back to summary

private Class ObjectMapperModule.ObjectMapperProvider

extends Object
implements Provider<ObjectMapper>
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.module.guice.ObjectMapperModule.ObjectMapperProvider
All Implemented Interfaces
com.google.inject.Provider, jakarta.inject.Provider

Field Summary

Modifier and TypeField and Description
private Injector
private final List<Module>
private final List<Key<? extends Module>>
private final ObjectMapper
private final List<Provider<? extends Module>>

Constructor Summary

AccessConstructor and Description
public
ObjectMapperProvider(List<Key<? extends Module>> modulesToInject, List<Module> modulesToAdd, ObjectMapper mapper)

Method Summary

Modifier and TypeMethod and Description
public void
public ObjectMapper
get()

Implements com.google.inject.Provider.get.

Provides an instance of T.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

injectorback to summary
private Injector injector
modulesToAddback to summary
private final List<Module> modulesToAdd
modulesToInjectback to summary
private final List<Key<? extends Module>> modulesToInject
objectMapperback to summary
private final ObjectMapper objectMapper
providedModulesback to summary
private final List<Provider<? extends Module>> providedModules

Constructor Detail

ObjectMapperProviderback to summary
public ObjectMapperProvider(List<Key<? extends Module>> modulesToInject, List<Module> modulesToAdd, ObjectMapper mapper)

Method Detail

configureback to summary
public void configure(Injector inj)
Annotations
@Inject
getback to summary
public ObjectMapper get()

Implements com.google.inject.Provider.get.

Doc from com.google.inject.Provider.get.

Provides an instance of T.

Returns:ObjectMapper

Doc from jakarta.inject.Provider.get.

instance of T.

Annotations
@Override