| java.lang.Object com.sun.midp.main.StartMIDletMonitor
StartMIDletMonitor | class StartMIDletMonitor implements MIDletProxyListListener(Code) | | Implements the mechanism to monitor the startup of a MIDlet.
It keeps track of which MIDlets are being started
and are not yet in the MIDletProxyList.
The information is used to avoid starting the same
MIDlet twice.
|
initClass | static void initClass(MIDletProxyList theMIDletProxyList)(Code) | | Initializes StartMIDletMonitor class.
Shall only be called from AmsUtil.
No need in security checks since it is package private method.
Parameters: theMIDletProxyList - MIDletController's container |
midletAdded | public void midletAdded(MIDletProxy midlet)(Code) | | Called when a MIDlet is added to the list.
If there's a match in the startPending list clean it up.
Parameters: midlet - The proxy of the MIDlet being added |
midletRemoved | public void midletRemoved(MIDletProxy midlet)(Code) | | Called when a MIDlet is removed from the list.
If there's a match in the startPending list clean it up.
Parameters: midlet - The proxy of the removed MIDlet |
midletStartError | public void midletStartError(int externalAppId, int suiteId, String className, int errorCode, String errorDetails)(Code) | | Called when error occurred while starting a MIDlet object.
If there's a match in the startPending list clean it up.
Parameters: externalAppId - ID assigned by the external application manager Parameters: suiteId - Suite ID of the MIDlet Parameters: className - Class name of the MIDlet Parameters: errorCode - start error code Parameters: errorDetails - start error details |
midletUpdated | public void midletUpdated(MIDletProxy midlet, int fieldId)(Code) | | Called when the state of a MIDlet in the list is updated.
If there's a match in the startPending list clean it up.
Parameters: midlet - The proxy of the MIDlet that was updated Parameters: fieldId - code for which field of the proxy was updated |
okToStart | static StartMIDletMonitor okToStart(int id, String midlet)(Code) | | Check if the MIDlet is already in the ProxyList or is
already being started. If so, return.
If not, start it. Register with the proxy list and
cleanup when the start of the MIDlet
succeeds (and is now in the ProxyList) or
fails (and is eligible to be started again).
Parameters: id - ID of an installed suite Parameters: midlet - class name of MIDlet to invoke; may be null the new StartMIDletMonitor to allow the MIDlet to be started;null if the MIDlet is already active or being started |
setIsolate | void setIsolate(Isolate newIsolate)(Code) | | Sets the Isolate associated with this starting MIDlet.
It is used to cleanup the Isolate if the start does not
start correctly.
Parameters: newIsolate - the Isolate used to start the MIDlet |
|
|