public UserRequest(Channel local, Callable<?, EXC> c) throws IOException { exports = local.startExportRecording(); try { request = serialize(c, local); } finally { exports.stopRecording(); } this.toString = c.toString(); ClassLoader cl = getClassLoader(c); classLoaderProxy = RemoteClassLoader.export(cl, local); }
/** {@linkplain #pin(Object) Pin down} the exported classloader. */ public void pinClassLoader(ClassLoader cl) { RemoteClassLoader.pin(cl, this); }