Module.SetupContext
Modifier and Type | Field and Description |
---|---|
protected AbstractTypeMaterializer |
_materializer
Configured materializer instance to register with deserializer factory.
|
Constructor and Description |
---|
MrBeanModule() |
MrBeanModule(AbstractTypeMaterializer materializer) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setupModule(Module.SetupContext context)
Method called by
ObjectMapper when module is registered. |
Version |
version()
Method that returns version of this module.
|
protected AbstractTypeMaterializer _materializer
public MrBeanModule()
public MrBeanModule(AbstractTypeMaterializer materializer)
public String getModuleName()
Module
getModuleName
in class Module
public Version version()
Module
public void setupModule(Module.SetupContext context)
Module
ObjectMapper
when module is registered.
It is called to let module register functionality it provides,
using callback methods passed-in context object exposes.setupModule
in class Module