Package com.esotericsoftware.kryo
Class SerializerFactory.FieldSerializerFactory
- java.lang.Object
-
- com.esotericsoftware.kryo.SerializerFactory.BaseSerializerFactory<FieldSerializer>
-
- com.esotericsoftware.kryo.SerializerFactory.FieldSerializerFactory
-
- All Implemented Interfaces:
SerializerFactory<FieldSerializer>
- Enclosing interface:
- SerializerFactory<T extends Serializer>
public static class SerializerFactory.FieldSerializerFactory extends SerializerFactory.BaseSerializerFactory<FieldSerializer>
A serializer factory that returns new, configuredFieldSerializer
instances.- Author:
- Nathan Sweet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.esotericsoftware.kryo.SerializerFactory
SerializerFactory.BaseSerializerFactory<T extends Serializer>, SerializerFactory.CompatibleFieldSerializerFactory, SerializerFactory.FieldSerializerFactory, SerializerFactory.ReflectionSerializerFactory<T extends Serializer>, SerializerFactory.SingletonSerializerFactory<T extends Serializer>, SerializerFactory.TaggedFieldSerializerFactory, SerializerFactory.VersionFieldSerializerFactory
-
-
Constructor Summary
Constructors Constructor Description FieldSerializerFactory()
FieldSerializerFactory(FieldSerializer.FieldSerializerConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldSerializer.FieldSerializerConfig
getConfig()
FieldSerializer
newSerializer(Kryo kryo, java.lang.Class type)
Creates and configures a new serializer.-
Methods inherited from class com.esotericsoftware.kryo.SerializerFactory.BaseSerializerFactory
isSupported
-
-
-
-
Constructor Detail
-
FieldSerializerFactory
public FieldSerializerFactory()
-
FieldSerializerFactory
public FieldSerializerFactory(FieldSerializer.FieldSerializerConfig config)
-
-
Method Detail
-
getConfig
public FieldSerializer.FieldSerializerConfig getConfig()
-
newSerializer
public FieldSerializer newSerializer(Kryo kryo, java.lang.Class type)
Description copied from interface:SerializerFactory
Creates and configures a new serializer.- Parameters:
kryo
- The Kryo instance that will be used with the new serializer.type
- The type of the object that the serializer will serialize.
-
-