| java.lang.Object com.sun.midp.main.AmsUtil
AmsUtil | public class AmsUtil (Code) | | Implements utilities that are different for SVM and MVM modes.
|
Method Summary | |
static boolean | executeWithArgs(MIDletSuiteStorage midletSuiteStorage, int externalAppId, int id, String midlet, String displayName, String arg0, String arg1, String arg2, int memoryReserved, int memoryTotal, int priority, String profileName) Queues the execution of the named Application suite to run.
The current application suite should terminate itself normally
to make resources available to the new application suite. | static void | initClass(MIDletProxyList theMIDletProxyList, MIDletControllerEventProducer theMidletControllerEventProducer) Initializes AmsUtil class. | static void | terminateIsolate(int id) |
executeWithArgs | static boolean executeWithArgs(MIDletSuiteStorage midletSuiteStorage, int externalAppId, int id, String midlet, String displayName, String arg0, String arg1, String arg2, int memoryReserved, int memoryTotal, int priority, String profileName)(Code) | | Queues the execution of the named Application suite to run.
The current application suite should terminate itself normally
to make resources available to the new application suite. Only
one package and set of MIDlets can be queued in this manner.
If multiple calls to execute are made, the package and MIDlets
specified during the last invokation will be executed
when the current application is terminated.
Parameters: midletSuiteStorage - reference to a MIDletStorage object Parameters: externalAppId - ID of MIDlet to invoke, given by an externalapplication manager (MVM only) Parameters: id - ID of an installed suite Parameters: midlet - class name of MIDlet to invoke Parameters: displayName - name to display to the user Parameters: arg0 - if not null, this parameter will be available to theMIDlet as application property arg-0 Parameters: arg1 - if not null, this parameter will be available to theMIDlet as application property arg-1 Parameters: arg2 - if not null, this parameter will be available to theMIDlet as application property arg-2 Parameters: memoryReserved - the minimum amount of memory guaranteed to beavailable to the isolate at any time; < 0 if not used Parameters: memoryTotal - the total amount of memory that the isolate canreserve; < 0 if not used Parameters: priority - priority to set for the new isolate;<= 0 if not used Parameters: profileName - name of the profile to set for the new isolate;null if not used true to signal that the MIDlet suite MUST first exit before theMIDlet is run |
initClass | static void initClass(MIDletProxyList theMIDletProxyList, MIDletControllerEventProducer theMidletControllerEventProducer)(Code) | | Initializes AmsUtil class. shall only be called from
MIDletSuiteLoader's main() in MVM AMS isolate
or in SVM main isolate.
No need in security checks since it is package private method.
Parameters: theMIDletProxyList - MIDletController's container Parameters: theMidletControllerEventProducer - utility to send events |
terminateIsolate | static void terminateIsolate(int id)(Code) | | Does nothing in SVM mode
Parameters: id - Isolate Id |
|
|