public static class SerializerFactory.ReflectionSerializerFactory<T extends Serializer> extends SerializerFactory.BaseSerializerFactory<T>
Kryo and an instance of Class as its parameter, take only a Kryo or
Class as its only argument, or take no arguments. If several of the described constructors are found, the first
found constructor is used, in the order they were just described.SerializerFactory.BaseSerializerFactory<T extends Serializer>, SerializerFactory.CompatibleFieldSerializerFactory, SerializerFactory.FieldSerializerFactory, SerializerFactory.ReflectionSerializerFactory<T extends Serializer>, SerializerFactory.SingletonSerializerFactory<T extends Serializer>, SerializerFactory.TaggedFieldSerializerFactory, SerializerFactory.VersionFieldSerializerFactory| Constructor and Description |
|---|
ReflectionSerializerFactory(java.lang.Class<T> serializerClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
newSerializer(Kryo kryo,
java.lang.Class type)
Creates and configures a new serializer.
|
static <T extends Serializer> |
newSerializer(Kryo kryo,
java.lang.Class<T> serializerClass,
java.lang.Class type)
Creates a new instance of the specified serializer for serializing the specified class.
|
isSupportedpublic ReflectionSerializerFactory(java.lang.Class<T> serializerClass)
public T newSerializer(Kryo kryo, java.lang.Class type)
SerializerFactorykryo - The Kryo instance that will be used with the new serializer.type - The type of the object that the serializer will serialize.public static <T extends Serializer> T newSerializer(Kryo kryo, java.lang.Class<T> serializerClass, java.lang.Class type)
Copyright © 2019. All Rights Reserved.