Class OsgiJacksonModule
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.module.osgi.OsgiJacksonModule
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
public class OsgiJacksonModule extends com.fasterxml.jackson.databind.ModuleA Jackson Module to inject OSGI services in deserialized objects. Note that registration will replace possibly exsting value injector (InjectableValues) implementation by callingObjectMapper.setInjectableValues(com.fasterxml.jackson.databind.InjectableValues).- See Also:
OsgiInjectableValues
-
-
Field Summary
Fields Modifier and Type Field Description private org.osgi.framework.BundleContextbundleContext
-
Constructor Summary
Constructors Constructor Description OsgiJacksonModule(org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetModuleName()voidsetupModule(com.fasterxml.jackson.databind.Module.SetupContext context)com.fasterxml.jackson.core.Versionversion()
-
-
-
Method Detail
-
getModuleName
public java.lang.String getModuleName()
- Specified by:
getModuleNamein classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.databind.Module
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
- Specified by:
setupModulein classcom.fasterxml.jackson.databind.Module
-
-