Class Module
java.lang.Object
org.codehaus.jackson.map.Module
- All Implemented Interfaces:
Versioned
- Direct Known Subclasses:
MrBeanModule, SimpleModule
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.- Since:
- 1.7
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface Jackson exposes to modules for purpose of registering extended functionality. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringMethod 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 voidsetupModule(Module.SetupContext context) Method called byObjectMapperwhen module is registered.abstract Versionversion()Method that returns version of this module.
-
Constructor Details
-
Module
public Module()
-
-
Method Details
-
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. -
version
-
setupModule
Method called byObjectMapperwhen module is registered. It is called to let module register functionality it provides, using callback methods passed-in context object exposes.
-