Top Description Fields Constructors Methods
com.fasterxml.jackson.module.osgi

public Class OsgiJacksonModule

extends Module
Class Inheritance
Imports
org.osgi.framework.BundleContext, com.fasterxml.jackson.core.Version, com.fasterxml.jackson.databind.Module, .ObjectMapper

A Jackson Module to inject OSGI services in deserialized objects. Note that registration will replace possibly exsting value injector (com.fasterxml.jackson.databind.InjectableValues) implementation by calling ObjectMapper#setInjectableValues.
See Also
OsgiInjectableValues

Field Summary

Modifier and TypeField and Description
private final BundleContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getModuleName()

Implements abstract com.fasterxml.jackson.databind.Module.getModuleName.

Method that returns a display that can be used by Jackson for informational purposes, as well as in associating extensions with module that provides them.

public void
setupModule(Module.SetupContext context)

Implements abstract com.fasterxml.jackson.databind.Module.setupModule.

Method called by ObjectMapper when module is registered.

public Version
version()

Implements abstract com.fasterxml.jackson.databind.Module.version.

Implements com.fasterxml.jackson.core.Versioned.version.

Method that returns version of this module.

Inherited from com.fasterxml.jackson.databind.Module:
getDependenciesgetTypeId

Field Detail

bundleContextback to summary
private final BundleContext bundleContext

Constructor Detail

OsgiJacksonModuleback to summary
public OsgiJacksonModule(BundleContext bundleContext)

Method Detail

getModuleNameback to summary
public String getModuleName()

Implements abstract com.fasterxml.jackson.databind.Module.getModuleName.

Doc from com.fasterxml.jackson.databind.Module.getModuleName.

Method that returns a display that can be used by Jackson for informational purposes, as well as in associating extensions with module that provides them.

Annotations
@Override
setupModuleback to summary
public void setupModule(Module.SetupContext context)

Implements abstract com.fasterxml.jackson.databind.Module.setupModule.

Doc from com.fasterxml.jackson.databind.Module.setupModule.

Method called by ObjectMapper when module is registered. It is called to let module register functionality it provides, using callback methods passed-in context object exposes.

Annotations
@Override
versionback to summary
public Version version()

Implements abstract com.fasterxml.jackson.databind.Module.version.

Implements com.fasterxml.jackson.core.Versioned.version.

Doc from com.fasterxml.jackson.databind.Module.version.

Method that returns version of this module. Can be used by Jackson for informational purposes.

Returns:Version

Doc from com.fasterxml.jackson.core.Versioned.version.

Version of the component

Annotations
@Override