|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mockme.midlet.MIDletApplicationManager
public class MIDletApplicationManager
Default implementation of an application manager for MIDlets. If a MIDlet require application properties this default implementation can be used to add those properties. It can also be used to control the lifecycle of a MIDlet.
Constructor Summary | |
---|---|
MIDletApplicationManager()
|
Method Summary | |
---|---|
int |
checkPermission(String permission)
|
void |
destroyMIDlet(MIDlet midlet,
boolean unconditional)
|
String |
getAppProperty(String key)
Returns an application property from the application manager. |
static MIDletApplicationManager |
getInstance()
|
void |
notifyDestroyed()
|
void |
notifyPaused()
|
void |
pauseMIDlet(MIDlet midlet)
|
boolean |
platformRequest(String url)
|
void |
registerMIDlet(MIDlet midlet,
MIDletLifecycle midletLifecycle)
|
void |
resumeRequest()
|
void |
setAppProperty(String key,
String value)
Sets an application property that is returned by a MIDlet. |
static void |
setInstance(MIDletApplicationManager newInstance)
Method used to mock the MIDletApplicationManager. |
void |
startMIDlet(MIDlet midlet)
Starts a MIDlet, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIDletApplicationManager()
Method Detail |
---|
public static MIDletApplicationManager getInstance()
public static void setInstance(MIDletApplicationManager newInstance)
newInstance
- The new instance to be returned by getInstance()
public void setAppProperty(String key, String value)
key
- The application property key.value
- The application property value.public String getAppProperty(String key)
key
- The application property key.
public void startMIDlet(MIDlet midlet) throws MIDletStateChangeException
MIDlet.startApp()
will be called.
midlet
- The MIDlet to start.
MIDletStateChangeException
public void pauseMIDlet(MIDlet midlet)
public void destroyMIDlet(MIDlet midlet, boolean unconditional) throws MIDletStateChangeException
MIDletStateChangeException
public void notifyDestroyed()
public void notifyPaused()
public void resumeRequest()
public boolean platformRequest(String url)
public int checkPermission(String permission)
public void registerMIDlet(MIDlet midlet, MIDletLifecycle midletLifecycle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |