Top Inners Fields Constructors Methods
tools.jackson.module.guice7

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, tools.jackson.databind.AnnotationIntrospector, .JacksonModule, .ObjectMapper, tools.jackson.databind.cfg.MapperBuilder, tools.jackson.databind.introspect.AnnotationIntrospectorPair, .JacksonAnnotationIntrospector, tools.jackson.databind.json.JsonMapper, 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<JacksonModule>
private final List<Key<? extends JacksonModule>>
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
public ObjectMapperModule
registerModule(Class<? extends JacksonModule> clazz, Class<? extends Annotation> annotation)

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

public ObjectMapperModule
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<JacksonModule> modulesToAdd
modulesToInjectback to summary
private final List<Key<? extends JacksonModule>> 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(JacksonModule module)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends JacksonModule> clazz)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends JacksonModule> clazz, Class<? extends Annotation> annotation)
registerModuleback to summary
public ObjectMapperModule registerModule(Class<? extends JacksonModule> clazz, Annotation annotation)
registerModuleback to summary
public ObjectMapperModule registerModule(Key<? extends JacksonModule> key)
withObjectMapperback to summary
public ObjectMapperModule withObjectMapper(ObjectMapper m)
Parameters
m:ObjectMapper

ObjectMapper to use for newly constructed module

tools.jackson.module.guice7 back to summary

private Class ObjectMapperModule.ObjectMapperProvider

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
ObjectMapperProvider(List<Key<? extends JacksonModule>> modulesToInject, List<JacksonModule> 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<JacksonModule> modulesToAdd
modulesToInjectback to summary
private final List<Key<? extends JacksonModule>> modulesToInject
objectMapperback to summary
private final ObjectMapper objectMapper
providedModulesback to summary
private final List<Provider<? extends JacksonModule>> providedModules

Constructor Detail

ObjectMapperProviderback to summary
public ObjectMapperProvider(List<Key<? extends JacksonModule>> modulesToInject, List<JacksonModule> 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.

Annotations
@Override