Interface SerializationContext
- All Known Implementing Classes:
ProtoRpcSerializer
public interface SerializationContext
-
Method Summary
Modifier and TypeMethodDescriptioncom.inductiveautomation.ignition.common.gson.Gson
gson()
protoEncode
(Object any) Encode the supplied object using whatever implicit serializer is registered that can handle it, returning the resultingValue
.protoEncode
(Object any, Class<?> clazz) Encodes the supplied object using specific serialization handling forclazz
, which could be some more specific type than automatic serialization lookup would use.
-
Method Details
-
gson
com.inductiveautomation.ignition.common.gson.Gson gson() -
protoEncode
Encode the supplied object using whatever implicit serializer is registered that can handle it, returning the resultingValue
.- Throws:
ProtoSerializationException
- if the supplied value could not be proto serialized.
-
protoEncode
Encodes the supplied object using specific serialization handling forclazz
, which could be some more specific type than automatic serialization lookup would use.- Throws:
ProtoSerializationException
-