public class CGLibProxySerializerFactory extends Object implements UnregisteredClassHandler, KryoCustomization
SerializerFactory that creates CGLibProxySerializer instances. Additionally
as KryoCustomization it registers a CGLibProxySerializer for the
CGLibProxySerializer.CGLibProxyMarker class.| Constructor and Description |
|---|
CGLibProxySerializerFactory(com.esotericsoftware.kryo.Kryo kryo)
Creates a new instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
customize(com.esotericsoftware.kryo.Kryo kryo)
Customize the provided
Kryo instance. |
boolean |
handleUnregisteredClass(Class<?> type)
Allows to handle the given unregistered class as a replacement of
Kryo.handleUnregisteredClass(Class). |
public CGLibProxySerializerFactory(com.esotericsoftware.kryo.Kryo kryo)
kryo - the kryo instance that must be provided.public void customize(com.esotericsoftware.kryo.Kryo kryo)
KryoCustomizationKryo instance.customize in interface KryoCustomizationkryo - the Kryo instance to customize.public boolean handleUnregisteredClass(Class<?> type)
UnregisteredClassHandlerKryo.handleUnregisteredClass(Class). true must be returned
if the class was handled and Kryo.handleUnregisteredClass(Class) shall
not be invoked by the caller.handleUnregisteredClass in interface UnregisteredClassHandlertype - the type to handle.true if the class was handled.Copyright © 2009-2014. All Rights Reserved.