public class XSingleInstanceService
extends java.lang.Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | XSingleInstanceService()Create a new XSingleInstanceService | 
| Modifier and Type | Method and 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)
sil - the single instance listener to be added. No action is
        performed if it is null.InstanceExistsException - which is likely to terminate the
         application but not guaranteed topublic void removeSingleInstanceListener(SingleInstanceListener sil)
sil - the single instance listener to be removed. No action is
        performed if it is null or not in the notification list.InstanceExistsException - if an instance of this single instance
         application already exists