void initAppletAdapter(AppletExecutionRunnable paramAppletExecutionRunnable)
throws ClassNotFoundException, IllegalAccessException,
ExitException, JRESelectException, IOException,
InstantiationException {
long l = DeployPerfUtil
.put(0L, "Plugin2Manager.createApplet() - BEGIN");
String str1 = getSerializedObject();
String str2 = getCode();
Plugin2ClassLoader localPlugin2ClassLoader = getAppletClassLoader();
DeployPerfUtil
.put("Plugin2Manager.createApplet() - post getAppletClassLoader()");
Object localObject1;
if (_INJECT_EXCEPTION_CREATEAPPLET) {
localObject1 = new IOException(
"INJECT_PLUGIN2MANAGER_EXCEPTION_CREATEAPPLET");
throw ((Throwable) localObject1);
}
if (_INJECT_CREATEAPPLET_NULL) {
System.out.println("INJECT_PLUGIN2MANAGER_CREATEAPPLET_NULL");
return;
}
if ((str2 != null) && (str1 != null)) {
System.err.println(amh.getMessage("runloader.err"));
throw new InstantiationException(
"Either \\"code\\" or \\"object\\" should be specified, but not both.");
}
if ((str2 == null) && (str1 == null))
return;
if (str2 != null) {
localObject1 = localPlugin2ClassLoader.loadCode(str2);
DeployPerfUtil
.put("Plugin2Manager.createApplet() - post loader.loadCode()");
String str3 = getAppletCode();
Object localObject2 = null;
if (!str3.equals(str2))
localObject2 = this.loader.loadCode(str3);
else
localObject2 = localObject1;
this._signedApplet = isAppletSigned((Class) localObject2);
if (localObject1 != null)
if (fireAppletSSVValidation()) {
appletSSVRelaunch();
} else {
checkRunningJVMToolkitSatisfying();
checkRunningJVMArgsSatisfying();
if (paramAppletExecutionRunnable != null)
paramAppletExecutionRunnable
.sendAndWaitForAppletConstructEvent();
this.adapter.instantiateApplet((Class) localObject1);
DeployPerfUtil
.put("Plugin2Manager.createApplet() - created applet instance");
}
} else {
if (!this.isSecureVM)
return;
this.adapter.instantiateSerialApplet(localPlugin2ClassLoader, str1);
this.doInit = false;
DeployPerfUtil
.put("Plugin2Manager.createApplet() - post: secureVM .. serialized .. ");
}
if (!this.adapter.isInstantiated()) {
System.out.println("Failed to instantiate applet??");
return;
}
if (this.shouldStop) {
setErrorOccurred("death");
this.adapter.abort();
if (DEBUG)
Trace.println("Applet ID " + this.appletID
+ " killed during creation", TraceLevel.BASIC);
logAppletStatus("death");
synchronized (this.stopLock) {
this.stopSuccessful = true;
this.stopLock.notifyAll();
}
return;
}
DeployPerfUtil.put(l, "Plugin2Manager.initAppletAdapter() - END");
}