| |
|
| java.lang.Object com.sun.midp.main.AbstractMIDletSuiteLoader com.sun.midp.main.CldcMIDletSuiteLoader com.sun.midp.main.MIDletSuiteLoader
MIDletSuiteLoader | public class MIDletSuiteLoader extends CldcMIDletSuiteLoader (Code) | | The first class loaded in VM by midp_run_midlet_with_args to initialize
internal security the internal AMS classes and start a MIDlet suite.
In SVM mode it handles all MIDlet suites (AMS and internal romized,
and application).
In MVM mode it only handles the first MIDlet suite isolate which is used
by the MIDP AMS and other internal MIDlets.
|
Method Summary | |
protected void | checkForShutdown() The AMS MIDlet started in the suite loader could request for
shutdown, so we need to check it, wait for other MIDlets destroying
and update CommandState with appropriate status. | protected void | closeSuite() | protected void | createSuiteEnvironment() | protected void | displayException(String exceptionMsg) | protected void | done() Extends base class implementatiom with additional actions for main
task shutdown. | protected void | exitLoader() | protected void | init() | protected void | initGlobalSystems() Inits global systems common for all started MIDlet suite tasks. | protected void | initSuiteEnvironment() Inits created MIDlet suite environment objects and global
subsystems needed for all suites. | public static void | main(String args) Called at the initial start of the VM. | protected void | reportError(int errorCode, String details) | protected void | setSuiteProperties() Sets suite arguments as temporary suite properties. |
disableAlerts | protected int disableAlerts(Code) | | Disable startup error alerts, uninitialized by default
|
checkForShutdown | protected void checkForShutdown()(Code) | | The AMS MIDlet started in the suite loader could request for
shutdown, so we need to check it, wait for other MIDlets destroying
and update CommandState with appropriate status.
|
closeSuite | protected void closeSuite()(Code) | | Overrides suite close logic for the AMS task
|
createSuiteEnvironment | protected void createSuiteEnvironment()(Code) | | Creates environment objects needed to AMS task
|
displayException | protected void displayException(String exceptionMsg)(Code) | | Displays an exception message to user
Parameters: exceptionMsg - the message text |
done | protected void done()(Code) | | Extends base class implementatiom with additional actions for main
task shutdown. Update and save CommandState instance
for VM cycling mechanism.
|
exitLoader | protected void exitLoader()(Code) | | Gracefully terminates VM with proper return code
|
init | protected void init()(Code) | | Extends base class initialization with initializatons
specific for the AMS task
|
initGlobalSystems | protected void initGlobalSystems()(Code) | | Inits global systems common for all started MIDlet suite tasks.
The systems should be initialized only once in the AMS task.
|
initSuiteEnvironment | protected void initSuiteEnvironment()(Code) | | Inits created MIDlet suite environment objects and global
subsystems needed for all suites.
The method also loads MIDlet suite paramaters and arguments
from the natively saved CommandState instance.
|
main | public static void main(String args)(Code) | | Called at the initial start of the VM.
Initializes internal security and any other AMS classes related
classes before starting the MIDlet.
Parameters: args - not used,a CommandState object is obtained andused for arguments |
reportError | protected void reportError(int errorCode, String details)(Code) | | Updates CommandState status and displays proper
exception message to user
Parameters: errorCode - generic error code Parameters: details - text with error details |
setSuiteProperties | protected void setSuiteProperties()(Code) | | Sets suite arguments as temporary suite properties.
The implementation extends base class method with
additional properties specific for AMS MIDlet in
the internal suite.
|
|
|
|