Class ApiModelMixinModule
java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.module.SimpleModule
com.basistech.util.jackson.EnumModule
com.basistech.rosette.dm.jackson.AnnotatedDataModelModule
com.basistech.rosette.apimodel.jackson.ApiModelMixinModule
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Serializable
public class ApiModelMixinModule
extends com.basistech.rosette.dm.jackson.AnnotatedDataModelModule
Jackson module to configure Json serialization and deserialization for the
Rosette API model.
- 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
Modifier and TypeMethodDescriptionvoid
setupModule
(com.fasterxml.jackson.databind.Module.SetupContext context) static com.fasterxml.jackson.databind.ObjectMapper
setupObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper mapper) Register the Rosette API Model Jackson module on anObjectMapper
.Methods inherited from class com.basistech.util.jackson.EnumModule
getTypeId
Methods inherited from class com.fasterxml.jackson.databind.module.SimpleModule
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setValueInstantiators, version
Methods inherited from class com.fasterxml.jackson.databind.Module
getDependencies
-
Constructor Details
-
ApiModelMixinModule
public ApiModelMixinModule()
-
-
Method Details
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) - Overrides:
setupModule
in classcom.basistech.rosette.dm.jackson.AnnotatedDataModelModule
-
setupObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper setupObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Register the Rosette API Model Jackson module on anObjectMapper
.- Parameters:
mapper
- the mapper.- Returns:
- the same mapper, for convenience.
-