de.javakaffee.kryoserializers
Class KryoReflectionFactorySupport

java.lang.Object
  extended by com.esotericsoftware.kryo.Kryo
      extended by de.javakaffee.kryoserializers.KryoReflectionFactorySupport

public class KryoReflectionFactorySupport
extends com.esotericsoftware.kryo.Kryo

A Kryo specialization that uses sun's ReflectionFactory to create new instance for classes without a default constructor.

Author:
Martin Grotzke

Nested Class Summary
 
Nested classes/interfaces inherited from class com.esotericsoftware.kryo.Kryo
com.esotericsoftware.kryo.Kryo.Listener, com.esotericsoftware.kryo.Kryo.RegisteredClass
 
Field Summary
 
Fields inherited from class com.esotericsoftware.kryo.Kryo
version
 
Constructor Summary
KryoReflectionFactorySupport()
           
 
Method Summary
protected  com.esotericsoftware.kryo.Serializer newDefaultSerializer(Class type)
          
<T> T
newInstance(Class<T> type)
          
static
<T> T
newInstanceFromReflectionFactory(Class<T> type)
           
 
Methods inherited from class com.esotericsoftware.kryo.Kryo
addListener, getClassLoader, getContext, getRegisteredClass, getRegisteredClass, getSerializer, handleUnregisteredClass, isFinal, newSerializer, readClass, readClassAndObject, readObject, readObjectData, register, register, register, register, removeListener, removeRemoteEntity, setClassLoader, setRegistrationOptional, setSerializer, writeClass, writeClassAndObject, writeObject, writeObjectData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KryoReflectionFactorySupport

public KryoReflectionFactorySupport()
Method Detail

newDefaultSerializer

protected com.esotericsoftware.kryo.Serializer newDefaultSerializer(Class type)

Overrides:
newDefaultSerializer in class com.esotericsoftware.kryo.Kryo

newInstance

public <T> T newInstance(Class<T> type)

Overrides:
newInstance in class com.esotericsoftware.kryo.Kryo

newInstanceFromReflectionFactory

public static <T> T newInstanceFromReflectionFactory(Class<T> type)


Copyright © 2010-2011. All Rights Reserved.