com.izforge.izpack.installer.requirement
Class LockFileChecker

java.lang.Object
  extended by com.izforge.izpack.installer.requirement.LockFileChecker
All Implemented Interfaces:
RequirementChecker

public class LockFileChecker
extends Object
implements RequirementChecker

Determines if another installation is in progress, by checking for the existence of a lock file.

Author:
Tim Anderson

Constructor Summary
LockFileChecker(AutomatedInstallData installData, Prompt prompt)
          Constructs a LockFileChecker.
 
Method Summary
 boolean check()
          Determines if installation requirements are met.
protected  boolean handleLockFile(File file)
          Invoked when the lock file already exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockFileChecker

public LockFileChecker(AutomatedInstallData installData,
                       Prompt prompt)
Constructs a LockFileChecker.

Parameters:
installData - the installation data
prompt - the prompt
Method Detail

check

public boolean check()
Determines if installation requirements are met.

Specified by:
check in interface RequirementChecker
Returns:
true if requirements are met, otherwise false

handleLockFile

protected boolean handleLockFile(File file)
Invoked when the lock file already exists.

Parameters:
file - the lock file
Returns:
true if the user wants to proceed with installation, false if they want to cancel


Copyright © 2018. All rights reserved.