ConverterRepository

public interface ConverterRepository<WireType>

Maintains a collection of converters for a specific wire format. Each converter has a wire type describing the actual message that is written on the wire and a data type that indicates which data it can serialize on the wire.

Author

swrede

Parameters

<WireType> – the kind of wire registered converters can deal with

Methods

addConverter

void addConverter(Converter<WireType> converter)

Adds a new converter to the repository.

Parameters

converter – new converter

getConvertersForDeserialization

ConverterSelectionStrategy<WireType> getConvertersForDeserialization()

This method queries the converter map for deseralizable data types and returns an UnambiguousConverterMap for the chosen WireType to the caller.

Returns

ConverterSelectionStrategy object for deserialization

getConvertersForSerialization

ConverterSelectionStrategy<WireType> getConvertersForSerialization()

This method queries the converter map for seralizable data types and returns an UnambiguousConverterMap for the chosen WireType to the caller.

Returns

ConverterSelectionStrategy object for serialization