Package javax.jnlp
Interface SingleInstanceService
- All Known Implementing Classes:
XSingleInstanceService
public interface SingleInstanceService
The SingleInstanceService provides a way to ensure that only one instance of
the application is ever running - singleton behavior at the application
level.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified SingleInstanceListener to the notification list.void
Removes the specified SingleInstanceListener from the notification list.
-
Method Details
-
addSingleInstanceListener
Adds the specified SingleInstanceListener to the notification list. This listener is notified when a new instance of the application is started.- Parameters:
listener
- the single instance listener to be added. No action is performed if it is null.
-
removeSingleInstanceListener
Removes the specified SingleInstanceListener from the notification list. This listener will not be notified if a new instance of the application is started.- Parameters:
listener
- the single instance listener to be removed. No action is performed if it is null or not in the notification list.
-