Interface SerdeFactory
- All Known Implementing Classes:
DefaultSerdeFactory
public interface SerdeFactory
Factory to create
MessageSerde instances.-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of aMessageSerdethat supports the given format.static SerdeFactoryCreates a newDefaultSerdeFactory, that supports JSON and XML.
-
Method Details
-
getInstance
Creates a newDefaultSerdeFactory, that supports JSON and XML.- Returns:
- a SerdeFactory that supports JSON and XML.
-
create
Creates an instance of aMessageSerdethat supports the given format.- Parameters:
format- message format which should be serialized/deserialized- Returns:
- an instance of the
MessageSerdefor the given format. - Throws:
SerdeInitializationException- if initialization of theMessageSerdeinstance has failed or the requested format is not supported.
-