public KryoInstantiator setClassLoader ( final ClassLoader cl ) { return new KryoInstantiator ( ) { public Kryo newKryo ( ) { Kryo k = KryoInstantiator . this . newKryo ( ) ; k . setClassLoader ( cl ) ; return k ; } } ; }
Use this to set a specific classloader