de.javakaffee.web.msm.serializer.kryo
Class CGLibProxySerializerFactory

java.lang.Object
  extended by de.javakaffee.web.msm.serializer.kryo.CGLibProxySerializerFactory
All Implemented Interfaces:
KryoCustomization, UnregisteredClassHandler

public class CGLibProxySerializerFactory
extends Object
implements UnregisteredClassHandler, KryoCustomization

A SerializerFactory that creates CGLibProxySerializer instances. Additionally as KryoCustomization it registers a CGLibProxySerializer for the CGLibProxySerializer.CGLibProxyMarker class.

Author:
Martin Grotzke

Constructor Summary
CGLibProxySerializerFactory(com.esotericsoftware.kryo.Kryo kryo)
          Creates a new instances.
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CGLibProxySerializerFactory

public CGLibProxySerializerFactory(com.esotericsoftware.kryo.Kryo kryo)
Creates a new instances.

Parameters:
kryo - the kryo instance that must be provided.
Method Detail

customize

public void customize(com.esotericsoftware.kryo.Kryo kryo)
Description copied from interface: KryoCustomization
Customize the provided Kryo instance.

Specified by:
customize in interface KryoCustomization
Parameters:
kryo - the Kryo instance to customize.

handleUnregisteredClass

public boolean handleUnregisteredClass(Class<?> type)
Description copied from interface: UnregisteredClassHandler
Allows to handle the given unregistered class as a replacement of Kryo.handleUnregisteredClass(Class). true must be returned if the class was handled and Kryo.handleUnregisteredClass(Class) shall not be invoked by the caller.

Specified by:
handleUnregisteredClass in interface UnregisteredClassHandler
Parameters:
type - the type to handle.
Returns:
true if the class was handled.


Copyright © 2009-2012. All Rights Reserved.