Java Code Examples for com.esotericsoftware.kryo.Kryo.setClassLoader()

The following are Jave code examples for showing how to use setClassLoader() of the com.esotericsoftware.kryo.Kryo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: JRediClients   File:   Source Code and License Vote up 5 votes
 * Sub classes can customize the Kryo instance by overriding this method
 * @return create Kryo instance
protected Kryo createInstance() {
    Kryo kryo = new Kryo();
    if (classLoader != null) {
    for (Class<?> clazz : classes) {
    return kryo;