Interface GrpcObjectSerializer.Serializer<A>
- Type Parameters:
A- the type of object to serialize
- Enclosing class:
- GrpcObjectSerializer<O>
public static interface GrpcObjectSerializer.Serializer<A>
Contract towards serializing an object of type
A.-
Method Summary
-
Method Details
-
serialize
<T> org.axonframework.serialization.SerializedObject<T> serialize(A object, Class<T> expectedRepresentation) Serialize the givenobjectinto an object of theexpectedRepresentation.- Type Parameters:
T- the type of theSerializedObjectto return- Parameters:
object- the object of typeAto serializeexpectedRepresentation- the type to serialize the givenobjectto- Returns:
- a
SerializedObjectofexpectedRepresentationbased on the givenobject
-