org.browsecode.helpers.installer.applications
Class ApplicationToInstall.Installer

java.lang.Object
  extended by org.browsecode.helpers.installer.applications.ApplicationToInstall.Installer
Direct Known Subclasses:
ApplicationToInstall.ExeInstaller, ApplicationToInstall.MacInstaller, ApplicationToInstall.MsiInstaller, ApplicationToInstall.TarGzipInstaller, ApplicationToInstall.ZipInstaller
Enclosing interface:
ApplicationToInstall

public abstract static class ApplicationToInstall.Installer
extends java.lang.Object


Field Summary
protected  ApplicationToInstall applicationToInstall
           
static int FAILED
           
protected  java.net.URL installerFile
           
protected  java.lang.String installerType
           
static int SUCCEEDED
           
static int USER_CANCELLED
           
 
Constructor Summary
ApplicationToInstall.Installer(ApplicationToInstall applicationToInstall, java.net.URL installerFile, java.lang.String installerType)
           
 
Method Summary
protected  java.lang.String getInstallerURLAsFileName(ControlComputerInterface computerToInstallOn)
           
 java.lang.String getType()
           
 java.net.URL getURL()
           
abstract  int install(ControlComputerInterface onComputer, InstallApplication.InstallationConfirmationHandler confirmationHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCEEDED

public static final int SUCCEEDED
See Also:
Constant Field Values

USER_CANCELLED

public static final int USER_CANCELLED
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

installerFile

protected java.net.URL installerFile

installerType

protected java.lang.String installerType

applicationToInstall

protected ApplicationToInstall applicationToInstall
Constructor Detail

ApplicationToInstall.Installer

public ApplicationToInstall.Installer(ApplicationToInstall applicationToInstall,
                                      java.net.URL installerFile,
                                      java.lang.String installerType)
Method Detail

getURL

public java.net.URL getURL()
Returns:
Returns the installerFile.

getType

public java.lang.String getType()
Returns:
Returns the installerType.

getInstallerURLAsFileName

protected java.lang.String getInstallerURLAsFileName(ControlComputerInterface computerToInstallOn)

install

public abstract int install(ControlComputerInterface onComputer,
                            InstallApplication.InstallationConfirmationHandler confirmationHandler)