|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netx.jnlp.runtime.ApplicationInstance
Represents a running instance of an application described in a JNLPFile. This class provides a way to track the application's resources and destroy the application.
Constructor Summary | |
ApplicationInstance(JNLPFile file,
java.lang.ThreadGroup group,
java.lang.ClassLoader loader)
Create an application instance for the file. |
Method Summary | |
void |
addApplicationListener(ApplicationListener listener)
Add an Application listener |
protected void |
addWindow(java.awt.Window window)
Adds a window that this application opened. |
void |
destroy()
Stop the application and destroy its resources. |
void |
finalize()
Releases the application's resources before it is collected. |
protected void |
fireDestroyed()
Notify listeners that the application has been terminated. |
java.lang.ClassLoader |
getClassLoader()
Returns the classloader. |
java.awt.EventQueue |
getEventQueue()
Returns the event queue for this application. |
JNLPFile |
getJNLPFile()
Returns the JNLP file for this task. |
java.lang.ThreadGroup |
getThreadGroup()
Returns the thread group. |
java.lang.String |
getTitle()
Returns the application title. |
void |
initialize()
Initialize the application's environment (installs environment variables, etc). |
boolean |
isRunning()
Returns whether the application is running. |
void |
removeApplicationListener(ApplicationListener listener)
Remove an Application Listener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationInstance(JNLPFile file, java.lang.ThreadGroup group, java.lang.ClassLoader loader)
Method Detail |
public void addApplicationListener(ApplicationListener listener)
public void removeApplicationListener(ApplicationListener listener)
protected void fireDestroyed()
public void initialize()
public void finalize()
finalize
in class java.lang.Object
public JNLPFile getJNLPFile()
public java.lang.String getTitle()
public boolean isRunning()
public void destroy()
public java.awt.EventQueue getEventQueue()
public java.lang.ThreadGroup getThreadGroup() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the app is not runningpublic java.lang.ClassLoader getClassLoader() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the app is not runningprotected void addWindow(java.awt.Window window)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |