public class KryoInstantiator
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
KryoInstantiator() |
Modifier and Type | Method and Description |
---|---|
com.esotericsoftware.kryo.Kryo |
newKryo() |
KryoInstantiator |
setClassLoader(java.lang.ClassLoader cl)
Use this to set a specific classloader
|
KryoInstantiator |
setInstantiatorStrategy(org.objenesis.strategy.InstantiatorStrategy inst)
If true, Kryo will error if it sees a class that has not been registered
|
KryoInstantiator |
setReferences(boolean ref)
If true, Kryo keeps a map of all the objects it has seen.
|
KryoInstantiator |
setRegistrationRequired(boolean req)
If true, Kryo will error if it sees a class that has not been registered
|
KryoInstantiator |
setThreadContextClassLoader()
Use Thread.currentThread().getContextClassLoader() as the ClassLoader where ther newKryo is called
|
KryoInstantiator |
withRegistrar(IKryoRegistrar r) |
public com.esotericsoftware.kryo.Kryo newKryo()
public KryoInstantiator setClassLoader(java.lang.ClassLoader cl)
public KryoInstantiator setInstantiatorStrategy(org.objenesis.strategy.InstantiatorStrategy inst)
public KryoInstantiator setReferences(boolean ref)
public KryoInstantiator setRegistrationRequired(boolean req)
public KryoInstantiator setThreadContextClassLoader()
public KryoInstantiator withRegistrar(IKryoRegistrar r)