/** * @deprecated */ public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { try { Class c = this.getClassLoaderRepository().loadClass(className); ClassLoader cl = c.getClassLoader(); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } catch (ClassNotFoundException e) { throw new ReflectionException(e, "Class not found from default repository: " + className); } }
/** * @deprecated */ public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { try { Class c = this.getClassLoaderRepository().loadClass(className); ClassLoader cl = c.getClassLoader(); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } catch (ClassNotFoundException e) { throw new ReflectionException(e, "Class not found from default repository: " + className); } }
this.classLoaderRepository = getClassLoaderRepository();
this.classLoaderRepository = getClassLoaderRepository();