Java Doc for JUMPAppContainer.java in  » 6.0-JDK-Modules » j2me » com » sun » jump » isolate » jvmprocess » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.jump.isolate.jvmprocess 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jump.isolate.jvmprocess.JUMPAppContainer

All known Subclasses:   com.sun.jumpimpl.isolate.jvmprocess.xlet.AppContainerImpl,  com.sun.jumpimpl.isolate.jvmprocess.midlet.AppContainerImpl,  com.sun.jumpimpl.isolate.jvmprocess.main.AppContainerImpl,  com.sun.midp.jump.isolate.MIDletContainer,
JUMPAppContainer
abstract public class JUMPAppContainer implements JUMPMessageHandler(Code)
JUMPAppContainer defines the application container. The container is responsible for launching the the application class and hosts the application and handles all the JUMP Isolate related functionality transparently to the application. It also receives and processes application model agnostic messages.

Unless specified for a method, it is assumed that methods catch all exceptions (but not fatal errors).

This class is extended by AppModel specific containers.




Constructor Summary
protected  JUMPAppContainer()
     Creates a new instance of JUMPAppContainer.

Method Summary
abstract public  voiddestroyApp(int appId, boolean force)
     Signals the JUMPApplication to prepare to be terminated by entering the Destroyed state.
public  voidhandleMessage(JUMPMessage message)
     Handle messages specific to an application model, if needed.
abstract public  voidpauseApp(int appId)
     Signals the JUMPApplication to enter the Paused state.

In the Paused state the JUMPApplication should release shared resources and become quiescent.

abstract public  voidresumeApp(int appId)
     Signals the JUMPApplication that to enter the Active state.
abstract public  intstartApp(JUMPApplication app, String[] args)
     Loads, initializes, and signals the JUMPApplication to enter the Active state.


Constructor Detail
JUMPAppContainer
protected JUMPAppContainer()(Code)
Creates a new instance of JUMPAppContainer. An uncheck exception can be thrown from this method to cause the isolate to exit.




Method Detail
destroyApp
abstract public void destroyApp(int appId, boolean force)(Code)
Signals the JUMPApplication to prepare to be terminated by entering the Destroyed state.

When entering the state the JUMPApplication should release all resources gracefully and saved any persistent state, in preparation for isolate termination.

This method may be called from the Paused or Active states.

The method must not return until the application is has responded to state change according the application model of the container.

If method results in destroying the last application, then this method should call JUMPAppContainerContext.terminateIsolate and not System.exit.
Parameters:
  appId - runtime ID of the application assigned by startApp
Parameters:
  force - If true when this method is called, theJUMPApplication must cleanup and release all resources.If false the JUMPApplication may choose to ignore therequest and this method will throw an exception to indicate theapplcation was not destroyed.




handleMessage
public void handleMessage(JUMPMessage message)(Code)
Handle messages specific to an application model, if needed. This message would be from a module implemented for the same application model with a format agreed upon outside JUMP API.
Parameters:
  message - message from a peer



pauseApp
abstract public void pauseApp(int appId)(Code)
Signals the JUMPApplication to enter the Paused state.

In the Paused state the JUMPApplication should release shared resources and become quiescent. If the application interfaces with the user it should still be prepared to display its interface.

Some application models will not have the concept of Paused state, in this case the method can be empty.

This method will only be called called when the JUMPApplication is in the Active state.

The method must not return until the application is has responded to state change according the application model of the container.

This method should not catch unchecked exceptions, so that caller can report a failure back to the executive and then the executive may issue a destroyApp request.
Parameters:
  appId - runtime ID of the application assigned by startApp




resumeApp
abstract public void resumeApp(int appId)(Code)
Signals the JUMPApplication that to enter the Active state. In the Active state the JUMPApplication may hold resources.

Some application models will not have the concept of Paused state, in this case the method can be empty.

The method will only be called when the JUMPApplication is in the Paused state.

The method must not return until the application is has responded to state change according the application model of the container.

This method should not catch unchecked exceptions, so that caller can report a failure back to the executive and then the executive may issue a destroyApp request.
Parameters:
  appId - runtime ID of the application assigned by startApp




startApp
abstract public int startApp(JUMPApplication app, String[] args)(Code)
Loads, initializes, and signals the JUMPApplication to enter the Active state.

In the Active state the JUMPApplication may hold resources.

The method will only be called once per application launch.

If the JUMPApplication interfaces with the user, it expected that it will display a user interface before this method returns.

If successful, the method must not return until the application is considered completely initilized and active according to the application model of the container.
Parameters:
  app - properties of the application to start
Parameters:
  args - arguments to pass to the application non-negative container unique runtime ID to identify theapplication in future method calls or negative int if the applicationcan't be started




Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.