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

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

public class WicketSerializerFactory
extends Object
implements SerializerFactory, KryoCustomization

A meta SerializerFactory and KryoCustomization that represents WicketMiniMapRegistration and WicketChildListSerializerFactory. Therefore you can just register this WicketSerializerFactory as custom converter.

Author:
Martin Grotzke

Constructor Summary
WicketSerializerFactory(com.esotericsoftware.kryo.Kryo kryo)
          Creates a new instances.
 
Method Summary
 void customize(com.esotericsoftware.kryo.Kryo kryo)
          Customize the provided Kryo instance.
 com.esotericsoftware.kryo.Serializer newSerializer(Class<?> type)
          Returns a serializer for the specified type or null if the type is not supported by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketSerializerFactory

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

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

newSerializer

public com.esotericsoftware.kryo.Serializer newSerializer(Class<?> type)
Description copied from interface: SerializerFactory
Returns a serializer for the specified type or null if the type is not supported by this factory.

Specified by:
newSerializer in interface SerializerFactory
Parameters:
type - the type a serializer shall be created for.
Returns:
a Serializer implementation or null.

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.


Copyright © 2009-2012. All Rights Reserved.