类 JsonProtoModule
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.databind.module.SimpleModule
-
- cn.feiliu.taskflow.serialization.JsonProtoModule
-
- 所有已实现的接口:
com.fasterxml.jackson.core.Versioned
,Serializable
public class JsonProtoModule extends com.fasterxml.jackson.databind.module.SimpleModule
JsonProtoModule can be registered into anObjectMapper
to enable the serialization and deserialization of ProtoBuf objects from/to JSON.Right now this module only provides (de)serialization for the
Any
ProtoBuf type, as this is the only ProtoBuf object which we're currently exposing through the REST API.- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected class
JsonProtoModule.AnyDeserializer
AnyDeserializer converts the custom JSON representation of anAny
value into its original form.protected class
JsonProtoModule.AnySerializer
AnySerializer converts a ProtoBufAny
object into its JSON representation.
-
构造器概要
构造器 构造器 说明 JsonProtoModule()
-
方法概要
-
从类继承的方法 com.fasterxml.jackson.databind.module.SimpleModule
addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, version
-
-