hal/src/zutil/OneInstance.java

25 lines
482 B
Java
Raw Normal View History

2008-11-14 16:38:36 +00:00
package zutil;
/**
* This interface is used to look if another instance of the
* application is running
*
* @author Ziver
*
*/
2010-10-27 18:02:44 +00:00
public interface OneInstance {
2008-11-14 16:38:36 +00:00
/**
* Checks if the application is already running
*
* @return True if the file is locked else false
*/
public boolean check();
/**
* Locks the application so that another one can not run
*
* @return False if there are a error else true
*/
public boolean lockApp();
}