@Experimental
public interface KryoRegistrar
extends java.io.Serializable
Kryo.
KryoRegistrars implementations have to be stateless and Serializable.
| Modifier and Type | Method and Description |
|---|---|
void |
registerClasses(com.esotericsoftware.kryo.Kryo kryo)
Implementations should call variants of
Kryo.register(Class) to register custom classes
with given Kryo instance. |
void registerClasses(com.esotericsoftware.kryo.Kryo kryo)
Kryo.register(Class) to register custom classes
with given Kryo instance. It should be stateless and resulting in the same type
registrations (including order of registration) every time it is called.kryo - Kryo instance to be used for type registration