Methods Summary |
---|
protected boolean | allocateReservedResources()Allocates resources for a suite task according
to global resource policy
return allocateReservedResources0();
|
private static native boolean | allocateReservedResources0()Allocates reserved resources for the given isolate.
|
protected void | createSuiteEnvironment()Extends base class implementation with
creation of additional event producers
super.createSuiteEnvironment();
// Create event producer to execute other MIDlets
// from non-AMS tasks
midletExecuteEventProducer =
new MIDletExecuteEventProducer(
internalSecurityToken,
eventQueue,
amsIsolateId);
|
protected void | exitLoader()Exits suite loader Isolate with proper exit code.
currentIsolate.exit(0);
|
private native void | finalize()Native cleanup code, called when this isolate is done,
even if killed.
|
private static native void | handleFatalError(java.lang.Throwable t)Handles a fatal error
|
protected void | init()Inits suite loader instance
currentIsolate = Isolate.currentIsolate();
super.init();
|
protected void | initSuiteEnvironment()Extends base class implementation with MVM specific
initializtion of the AmsUtil class
super.initSuiteEnvironment();
AmsUtil.initClassInAppIsolate(
midletExecuteEventProducer);
|
public static void | main(java.lang.String[] args)Called for isolates other than the initial one.
Initializes internal security, and starts the MIDlet.
try {
/* This class shouldn't be used more than once. */
if (inUse) {
throw new IllegalStateException();
}
inUse = true;
new AppIsolateMIDletSuiteLoader(args).runMIDletSuite();
} catch (Throwable t) {
handleFatalError(t);
}
|
protected void | reportError(int errorCode, java.lang.String details)Posts suite task error to event system.
midletControllerEventProducer.sendMIDletStartErrorEvent(
suiteId, midletClassName, externalAppId,
errorCode, details);
|
protected void | restrictAPIAccess()Restricts suite access to internal API
if (midletSuite.checkPermission(
Permissions.getName(Permissions.AMS)) != 1) {
// Permission is not allowed.
//
// Shutdown access to Isolate references before a MIDlet is
// loaded. This will not effect the reference already obtained.
currentIsolate.setAPIAccess(false);
}
|