public interface SerializerFactory<T extends Serializer>
Modifier and Type | Interface and Description |
---|---|
static class |
SerializerFactory.BaseSerializerFactory<T extends Serializer>
A serializer factory which always returns true for
SerializerFactory.BaseSerializerFactory.isSupported(Class) . |
static class |
SerializerFactory.CompatibleFieldSerializerFactory
A serializer factory that returns new, configured
CompatibleFieldSerializer instances. |
static class |
SerializerFactory.FieldSerializerFactory
A serializer factory that returns new, configured
FieldSerializer instances. |
static class |
SerializerFactory.ReflectionSerializerFactory<T extends Serializer>
This factory instantiates new serializers of a given class via reflection.
|
static class |
SerializerFactory.SingletonSerializerFactory<T extends Serializer>
A serializer factory that always returns a given serializer instance rather than creating new serializer instances.
|
static class |
SerializerFactory.TaggedFieldSerializerFactory
A serializer factory that returns new, configured
TaggedFieldSerializer instances. |
static class |
SerializerFactory.VersionFieldSerializerFactory
A serializer factory that returns new, configured
VersionFieldSerializer instances. |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(java.lang.Class type)
Returns true if this factory can create a serializer for the specified type.
|
T |
newSerializer(Kryo kryo,
java.lang.Class type)
Creates and configures a new serializer.
|
T newSerializer(Kryo kryo, java.lang.Class type)
kryo
- The Kryo instance that will be used with the new serializer.type
- The type of the object that the serializer will serialize.boolean isSupported(java.lang.Class type)
Copyright © 2019. All Rights Reserved.