Class VersionableSerializer
- java.lang.Object
-
- com.oracle.coherence.io.json.internal.VersionableSerializer
-
- All Implemented Interfaces:
Serializer<Versionable>
public class VersionableSerializer extends Object implements Serializer<Versionable>
SerializerforVersionablethat delegates the serialization to anotherConverterbased on the raw type asVersionableitself has no serializable properties.- Since:
- 20.06
-
-
Field Summary
Fields Modifier and Type Field Description static VersionableSerializerINSTANCESingletonVersionableSerializerinstance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVersionableSerializer()Creates a newVersionableSerializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(Versionable object, ObjectWriter writer, Context ctx)
-
-
-
Field Detail
-
INSTANCE
public static final VersionableSerializer INSTANCE
SingletonVersionableSerializerinstance.
-
-
Method Detail
-
serialize
public void serialize(Versionable object, ObjectWriter writer, Context ctx) throws Exception
- Specified by:
serializein interfaceSerializer<Versionable>- Parameters:
object- we want to serialize. The object is of type T or a subclass (if this serializer has been registered for subclasses).writer- to use to write data to the output stream.ctx- the current context.- Throws:
JsonBindingExceptionJsonStreamExceptionException
-
-