|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.runtime.ApplicationInstance
public class 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. |
sun.awt.AppContext |
getAppContext()
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader. |
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. |
boolean |
isSigned()
Returns whether or not this jar is signed. |
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)
ThreadGroup
only.
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.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)
public boolean isSigned()
public sun.awt.AppContext getAppContext()
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |