document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. void initAppletAdapter(AppletExecutionRunnable paramAppletExecutionRunnable)
  2.   throws ClassNotFoundException, IllegalAccessException,
  3.   ExitException, JRESelectException, IOException,
  4.   InstantiationException {
  5.  long l = DeployPerfUtil
  6.    .put(0L, "Plugin2Manager.createApplet() - BEGIN");
  7.  String str1 = getSerializedObject();
  8.  String str2 = getCode();
  9.  Plugin2ClassLoader localPlugin2ClassLoader = getAppletClassLoader();
  10.  DeployPerfUtil
  11.    .put("Plugin2Manager.createApplet() - post getAppletClassLoader()");
  12.  Object localObject1;
  13.  if (_INJECT_EXCEPTION_CREATEAPPLET) {
  14.   localObject1 = new IOException(
  15.     "INJECT_PLUGIN2MANAGER_EXCEPTION_CREATEAPPLET");
  16.   throw ((Throwable) localObject1);
  17.  }
  18.  if (_INJECT_CREATEAPPLET_NULL) {
  19.   System.out.println("INJECT_PLUGIN2MANAGER_CREATEAPPLET_NULL");
  20.   return;
  21.  }
  22.  if ((str2 != null) && (str1 != null)) {
  23.   System.err.println(amh.getMessage("runloader.err"));
  24.   throw new InstantiationException(
  25.     "Either \\"code\\" or \\"object\\" should be specified, but not both.");
  26.  }
  27.  if ((str2 == null) && (str1 == null))
  28.   return;
  29.  if (str2 != null) {
  30.   localObject1 = localPlugin2ClassLoader.loadCode(str2);
  31.   DeployPerfUtil
  32.     .put("Plugin2Manager.createApplet() -  post loader.loadCode()");
  33.   String str3 = getAppletCode();
  34.   Object localObject2 = null;
  35.   if (!str3.equals(str2))
  36.    localObject2 = this.loader.loadCode(str3);
  37.   else
  38.    localObject2 = localObject1;
  39.   this._signedApplet = isAppletSigned((Class) localObject2);
  40.   if (localObject1 != null)
  41.    if (fireAppletSSVValidation()) {
  42.     appletSSVRelaunch();
  43.    } else {
  44.     checkRunningJVMToolkitSatisfying();
  45.     checkRunningJVMArgsSatisfying();
  46.     if (paramAppletExecutionRunnable != null)
  47.      paramAppletExecutionRunnable
  48.        .sendAndWaitForAppletConstructEvent();
  49.     this.adapter.instantiateApplet((Class) localObject1);
  50.     DeployPerfUtil
  51.       .put("Plugin2Manager.createApplet() - created applet instance");
  52.    }
  53.  } else {
  54.   if (!this.isSecureVM)
  55.    return;
  56.   this.adapter.instantiateSerialApplet(localPlugin2ClassLoader, str1);
  57.   this.doInit = false;
  58.   DeployPerfUtil
  59.     .put("Plugin2Manager.createApplet() - post: secureVM .. serialized .. ");
  60.  }
  61.  if (!this.adapter.isInstantiated()) {
  62.   System.out.println("Failed to instantiate applet??");
  63.   return;
  64.  }
  65.  if (this.shouldStop) {
  66.   setErrorOccurred("death");
  67.   this.adapter.abort();
  68.   if (DEBUG)
  69.    Trace.println("Applet ID " + this.appletID
  70.      + " killed during creation", TraceLevel.BASIC);
  71.   logAppletStatus("death");
  72.   synchronized (this.stopLock) {
  73.    this.stopSuccessful = true;
  74.    this.stopLock.notifyAll();
  75.   }
  76.   return;
  77.  }
  78.  DeployPerfUtil.put(l, "Plugin2Manager.initAppletAdapter() - END");
  79. }
');