Interface SerializationContext.InstanceMarshallerProvider<T>
- Enclosing interface:
SerializationContext
public static interface SerializationContext.InstanceMarshallerProvider<T>
Interface to be implemented for dynamic lookup of marshallers where the type is part of the entity being
marshalled.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Java type handled by this marshaller.getMarshaller(String typeName) Get a marshaller to unmarshall the supplied type name or @code null} if the type cannot be unmarshalled by this provider.getMarshaller(T instance) Get marshaller given a instance to be marshalled ornullif the instance cannot be marshalled by this provider.getTypeName(T instance) Returns the protobuf types handled by this marshaller.
-
Method Details
-
getJavaClass
-
getTypeNames
-
getTypeName
-
getMarshaller
Get marshaller given a instance to be marshalled ornullif the instance cannot be marshalled by this provider. -
getMarshaller
Get a marshaller to unmarshall the supplied type name or @code null} if the type cannot be unmarshalled by this provider.
-