public abstract class Module extends Object implements Versioned
ObjectMapper
to provide a well-defined set of extensions to default functionality; such as
support for new data types.Modifier and Type | Class and Description |
---|---|
static interface |
Module.SetupContext
Interface Jackson exposes to modules for purpose of registering
extended functionality.
|
Constructor and Description |
---|
Module() |
Modifier and Type | Method and Description |
---|---|
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.
|
public abstract String getModuleName()
public abstract Version version()
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.