public class JacksonModule
extends com.google.inject.AbstractModule
ObjectMapper.
With the module installed, you can add new Jackson modules to the
ObjectMapper by adding bindings of Module using the Multibinder.
Example:
class MyModule extends AbstractModule {
{@literal @}Override
protected void configure() {
Multibinder<Module> jacksonModuleBinder = Multibinder
.newSetBinder(binder(), Module.class);
jacksonModuleBinder.addBinding().to(FoobarModule.class);
}
}
Provides:
ObjectMapperInstalls:
MultibindingsScanner | Constructor and Description |
|---|
JacksonModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingCopyright © 2018 Cerner Innovation, Inc.. All rights reserved.