KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jnlp > SingleInstanceListener


1 /*
2  * @(#)SingleInstanceListener.java 1.4 04/03/12
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.jnlp;
9
10
11 /**
12  * <code>SingleInstanceListener</code> is a interface which should be
13  * implemented by a JNLP application if they wish to support
14  * single instance behaviour.
15  *
16  * @since 1.5
17  */

18
19 public interface SingleInstanceListener {
20
21  /**
22    * This method should be implemented by the application to
23    * handle the single instance behaviour - how should the application
24    * handle the arguments when another instance of the application is
25    * invoked with params.
26    *
27    * @param params Array of parameters for the application main
28    * (arguments supplied in the jnlp file)
29    *
30    */

31
32     void newActivation(String[] params);
33
34 }
35
Popular Tags