Class TinkerPopJacksonModule
java.lang.Object
org.apache.tinkerpop.shaded.jackson.databind.Module
org.apache.tinkerpop.shaded.jackson.databind.module.SimpleModule
org.apache.tinkerpop.gremlin.structure.io.graphson.TinkerPopJacksonModule
- All Implemented Interfaces:
Serializable,org.apache.tinkerpop.shaded.jackson.core.Versioned
- Direct Known Subclasses:
CustomId.CustomIdTinkerPopJacksonModuleV2,CustomId.CustomIdTinkerPopJacksonModuleV3,GraphSONXModuleV2,GraphSONXModuleV3,GraphSONXModuleV4,ToyIoRegistry.ToyModule
public abstract class TinkerPopJacksonModule
extends org.apache.tinkerpop.shaded.jackson.databind.module.SimpleModule
A
SimpleModule extension that does the necessary work to make the automatic typed deserialization
without full canonical class names work.
Users of custom modules with the GraphSONMapper that want their objects to be deserialized automatically by the
mapper, must extend this class with their module. It is the only required step.
Using this basis module allows the serialization and deserialization of typed objects without having the whole
canonical name of the serialized classes included in the Json payload. This is also necessary because Java
does not provide an agnostic way to search in a classpath a find a class by its simple name. Although that could
be done with an external library, later if we deem it necessary.- Author:
- Kevin Gallardo (https://kgdo.me)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tinkerpop.shaded.jackson.databind.Module
org.apache.tinkerpop.shaded.jackson.databind.Module.SetupContext -
Field Summary
Fields inherited from class org.apache.tinkerpop.shaded.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 org.apache.tinkerpop.shaded.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 org.apache.tinkerpop.shaded.jackson.databind.Module
getDependencies
-
Constructor Details
-
TinkerPopJacksonModule
-
-
Method Details
-
getTypeDefinitions
-
getTypeNamespace
-