Top Description Fields Constructors Methods
tools.jackson.module.osgi

public Class OsgiJacksonModule

extends JacksonModule
Class Inheritance
Imports
org.osgi.framework.BundleContext, tools.jackson.core.Version, tools.jackson.databind.JacksonModule

Jackson Module to inject OSGI services in deserialized objects. Note that registration will replace possibly existing default value injector (tools.jackson.databind.InjectableValues). If you want a combination, you will need to add bridging functionality between default implementation and OsgiInjectableValues.
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 tools.jackson.databind.JacksonModule.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(JacksonModule.SetupContext context)

Implements abstract tools.jackson.databind.JacksonModule.setupModule.

Method called by ObjectMapper when module is registered.

public Version
version()

Implements abstract tools.jackson.databind.JacksonModule.version.

Implements tools.jackson.core.Versioned.version.

Method that returns version of this module.

Inherited from tools.jackson.databind.JacksonModule:
getDependenciesgetRegistrationId

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 tools.jackson.databind.JacksonModule.getModuleName.

Doc from tools.jackson.databind.JacksonModule.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(JacksonModule.SetupContext context)

Implements abstract tools.jackson.databind.JacksonModule.setupModule.

Doc from tools.jackson.databind.JacksonModule.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 tools.jackson.databind.JacksonModule.version.

Implements tools.jackson.core.Versioned.version.

Doc from tools.jackson.databind.JacksonModule.version.

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

Annotations
@Override