|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.Module
public abstract class Module
Simple interface for extensions that can be registered with ObjectMapper
to provide a well-defined set of extensions to default functionality; such as
support for new data types.
Nested Class Summary | |
---|---|
static interface |
Module.SetupContext
Interface Jackson exposes to modules for purpose of registering extended functionality. |
Constructor Summary | |
---|---|
Module()
|
Method Summary | |
---|---|
abstract String |
getModuleName()
Method that returns identifier for module; this can be used by Jackson for informational purposes, as well as in associating extensions with module that provides them. |
abstract void |
setupModule(Module.SetupContext context)
Method called by ObjectMapper when module is registered. |
abstract Version |
version()
Method that returns version of this module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Module()
Method Detail |
---|
public abstract String getModuleName()
public abstract Version version()
version
in interface Versioned
public abstract void setupModule(Module.SetupContext context)
ObjectMapper
when module is registered.
It is called to let module register functionality it provides,
using callback methods passed-in context object exposes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |