org.installguru.installer
Interface InstallTask

All Known Implementing Classes:
InstallTaskPanel, ShortcutTask

public interface InstallTask

All the tasks performed by the installer, implements this interface.


Method Summary
 void doCancel(java.util.Properties props)
          This method is called by the installer when the install operation is cancelled by the user.
 boolean doNext(java.util.Properties props)
          This method is called by the installer when it is moved to the next task.
 void init(java.util.Properties props)
          This method is called by the installer whenever this task is initialized.
 boolean isOSSupported()
          Returns true if this task is supported in the operating system currently it is running on.
 

Method Detail

isOSSupported

public boolean isOSSupported()
Returns true if this task is supported in the operating system currently it is running on. The OS independent tasks will always return true.

init

public void init(java.util.Properties props)
          throws InstallException
This method is called by the installer whenever this task is initialized.
Parameters:
props - installer properties.
Throws:
InstallException. -  

doNext

public boolean doNext(java.util.Properties props)
               throws InstallException
This method is called by the installer when it is moved to the next task.
Parameters:
props - installer properties.
Returns:
true to allow to move to next task. Otherwise it stays on this task.
Throws:
InstallException. -  

doCancel

public void doCancel(java.util.Properties props)
This method is called by the installer when the install operation is cancelled by the user.
Parameters:
props - installer properties.