Method Detail

getSerializer

This method will be invoked when any thread needs a Serializer:
implementors of this Service can return the same instance multiple
times if the Serializer implementation is threadsafe.
In all other cases return a new instance.
An obtained Serializer should not be shared across threads.

Returns:

the initialized Serializer ready for usage

getDeserializer

This method will be invoked when any thread needs a Deserializer:
implementors of this Service can return the same instance multiple
times if the Deserializer implementation is threadsafe.
In all other cases return a new instance.
An obtained Deserializer should not be shared across threads.