public class ApplicationInstance
extends java.lang.Object
Constructor and Description |
---|
ApplicationInstance(JNLPFile file,
java.lang.ThreadGroup group,
java.lang.ClassLoader loader)
Create an application instance for the file.
|
Modifier and Type | Method and Description |
---|---|
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 jnlpfile on which is this application based
|
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() |
void |
removeApplicationListener(ApplicationListener listener)
Remove an Application Listener
|
public ApplicationInstance(JNLPFile file, java.lang.ThreadGroup group, java.lang.ClassLoader loader)
ThreadGroup
only.file
- jnlpfile for which the instance do existsgroup
- thread group to which it belongsloader
- loader for this applicationpublic void addApplicationListener(ApplicationListener listener)
listener
- listener to be addedpublic void removeApplicationListener(ApplicationListener listener)
listener
- to be removedprotected 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)
window
- to be addedpublic boolean isSigned()
public sun.awt.AppContext getAppContext()