public class ApplicationInstance
extends java.lang.Object
Constructor and Description |
---|
ApplicationInstance(JNLPFile file,
java.lang.ThreadGroup group,
java.lang.ClassLoader loader,
java.lang.Object appContext)
Create an application instance for the file.
|
Modifier and Type | Method and Description |
---|---|
void |
addWindow(java.lang.Object 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.Object |
getAppContext()
Returns either
AppContext or .. |
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.
|
public ApplicationInstance(JNLPFile file, java.lang.ThreadGroup group, java.lang.ClassLoader loader, java.lang.Object appContext)
ThreadGroup
only.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 runningpublic void addWindow(java.lang.Object window)
public boolean isSigned()
public java.lang.Object getAppContext()
AppContext
or ..
FIXME: Add proper interface