public class XSingleInstanceService
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
XSingleInstanceService() |
Create a new XSingleInstanceService
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addSingleInstanceListener(SingleInstanceListener sil) |
Add the specified SingleInstanceListener
|
void |
checkSingleInstanceRunning(JNLPFile jnlpFile) |
Check if another instance of this application is already running
|
void |
initializeSingleInstance() |
Initialize the new SingleInstanceService
|
void |
removeSingleInstanceListener(SingleInstanceListener sil) |
Remove the specified SingleInstanceListener
|
protected XSingleInstanceService()
public void initializeSingleInstance()
InstanceExistsException - if the instance already existspublic void checkSingleInstanceRunning(JNLPFile jnlpFile)
jnlpFile - The JNLPFile that specifies the applicationInstanceExistsException - if an instance of this application
already existspublic void addSingleInstanceListener(SingleInstanceListener sil)
InstanceExistsException - which is likely to terminate the
application but not guaranteed topublic void removeSingleInstanceListener(SingleInstanceListener sil)
InstanceExistsException - if an instance of this single instance
application already exists