Class BitolModule
java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.module.SimpleModule
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolModule
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,Serializable
public final class BitolModule
extends com.fasterxml.jackson.databind.module.SimpleModule
BitolModule is a Jackson module that adds the lenient handling needed to read the range of documents found in
the wild: for example ODCS v3.0 documents that supply the team as a bare list of members rather than the
team object introduced in v3.1. Register it with an ObjectMapper that reads Bitol documents:
ObjectMapper mapper = new ObjectMapper(new YAMLFactory()).registerModule(new BitolModule());
BitolDocumentFormatter registers it automatically. The beans themselves only carry annotations from the
jackson-annotations package, so they can be used with any ObjectMapper; without this module the older team
form is rejected.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.Module.SetupContext -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.module.SimpleModule
_abstractTypes, _deserializerModifier, _deserializers, _hasExplicitName, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.module.SimpleModule
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, versionMethods inherited from class com.fasterxml.jackson.databind.Module
getDependencies
-
Constructor Details
-
BitolModule
public BitolModule()Default constructor registers the deserializers.
-