Example #1
0
  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);
  }
Example #2
0
 /** {@linkplain #pin(Object) Pin down} the exported classloader. */
 public void pinClassLoader(ClassLoader cl) {
   RemoteClassLoader.pin(cl, this);
 }