Package deltix.qsrv.hf.pub.serializers
Class SerializerFactory
- java.lang.Object
-
- deltix.qsrv.hf.pub.serializers.SerializerFactory
-
public class SerializerFactory extends java.lang.ObjectA factory for creation of instances of ISerializer and IDeserializer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerializerFactory.SerializerKind
-
Constructor Summary
Constructors Constructor Description SerializerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SerializersgetSerializers(RecordClassDescriptor[] schema, SerializerFactory.SerializerKind kind, TypeLoader typeLoader)Creates instances of ISerializer and/or IDeserializer.static SerializersgetSerializers(RecordClassDescriptor schema, SerializerFactory.SerializerKind kind, TypeLoader typeLoader)Creates instances of ISerializer and/or IDeserializer.
-
-
-
Method Detail
-
getSerializers
public static Serializers getSerializers(RecordClassDescriptor schema, SerializerFactory.SerializerKind kind, TypeLoader typeLoader) throws java.lang.ClassNotFoundException, java.lang.IllegalArgumentException
Creates instances of ISerializer and/or IDeserializer.- Parameters:
schema- Descriptor of the type to be serialized/deserializedkind- Kind of instances to create: Serializer, Deserializer or BothtypeLoader- TypeLoader for the type described by schema; mustn't be null- Returns:
- Serializers object with serializer or deserializer, or both
- Throws:
java.lang.ClassNotFoundException- when the typeLoader cannot load the class described in the schemajava.lang.IllegalArgumentException- when any of the method's parameters is null
-
getSerializers
public static Serializers getSerializers(RecordClassDescriptor[] schema, SerializerFactory.SerializerKind kind, TypeLoader typeLoader) throws java.lang.ClassNotFoundException, java.lang.IllegalArgumentException
Creates instances of ISerializer and/or IDeserializer.- Parameters:
schema- Array of descriptors of types to be serialized/deserializedkind- Kind of instances to create: Serializer, Deserializer or BothtypeLoader- ITypeLoader for serializer and deserializer; mustn't be null- Returns:
- Serializers object with serializer or deserializer, or both
- Throws:
java.lang.ClassNotFoundException- when the typeLoader cannot load the class described in the schemajava.lang.IllegalArgumentException- when any of the method's parameters is null
-
-