org.browsecode.helpers.installer.applications
Interface ApplicationToInstall

All Known Implementing Classes:
ApplicationToInstallStub, InstallApacheTomcat, InstallMySQL, InstallSurveyManager, InstallWebapp

public interface ApplicationToInstall


Nested Class Summary
static class ApplicationToInstall.ExeInstaller
           
static class ApplicationToInstall.Installer
           
static class ApplicationToInstall.MacInstaller
          Installs dmg's and other file types on Mac OS X.
static class ApplicationToInstall.MsiInstaller
           
static interface ApplicationToInstall.Searcher
           
static class ApplicationToInstall.TarGzipInstaller
          Only works on unixes.
static class ApplicationToInstall.ZipInstaller
           
 
Field Summary
static java.lang.String INSTALLED_BUT_DIRECTORY_UNKNOWN
           
 
Method Summary
 void addedToApplicationSet(ApplicationSet applicationSet)
          Called by ApplicationSet after the application has been added to the ApplicationSet.
 boolean getAskToFindPreviousInstalls()
          Returns whether to ask the user whether this application has been installed before.
 java.lang.String getDescription()
           
 java.lang.String getInstalledInDirectory()
          After installing the program, this is the directory it was installed into.
 ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn, ApplicationSet applicationSet)
          An installer or a zip of the application.
 java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
          Directions for installing the application by hand.
 java.net.URL[] getInstallerURL()
          Any URLs that the application can be downloaded by hand, by users, if the application installer is not available or can't be used for any reason.
 java.lang.String getName()
           
 ApplicationToInstall.Searcher getSearcher()
           
 boolean getTryToFindPreviousInstalls()
          Returns true if it should search for the installation directiory, returns false if it should not search for the installation directory.
 void setInstalledInDirectory(java.lang.String installedIn)
          After installing the program, this is the directory it was installed into.
 

Field Detail

INSTALLED_BUT_DIRECTORY_UNKNOWN

static final java.lang.String INSTALLED_BUT_DIRECTORY_UNKNOWN
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()

getDescription

java.lang.String getDescription()

getInstaller

ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn,
                                            ApplicationSet applicationSet)
An installer or a zip of the application. This file may be either an executable file or a zip. May also be null. This should be the only file required for installation. Pass in a ControlComputerInterface so it can check the OS information.

Parameters:
applicationSet -
Returns:

getInstallerURL

java.net.URL[] getInstallerURL()
Any URLs that the application can be downloaded by hand, by users, if the application installer is not available or can't be used for any reason. They will be recommended from first to last.

Returns:

getInstallerDirections

java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
Directions for installing the application by hand.

Parameters:
machineToInstallOn -
Returns:

setInstalledInDirectory

void setInstalledInDirectory(java.lang.String installedIn)
After installing the program, this is the directory it was installed into. Please set it after installation.


getInstalledInDirectory

java.lang.String getInstalledInDirectory()
After installing the program, this is the directory it was installed into. Please set it after installation.

Returns:

getAskToFindPreviousInstalls

boolean getAskToFindPreviousInstalls()
Returns whether to ask the user whether this application has been installed before. Return true for applications that may already have been installed on the machine. Return false for applications that have most likely not been installed, or can be installed multiple times, or for the main application.

Returns:

getTryToFindPreviousInstalls

boolean getTryToFindPreviousInstalls()
Returns true if it should search for the installation directiory, returns false if it should not search for the installation directory. (This depends upon whether dependent

Returns:

addedToApplicationSet

void addedToApplicationSet(ApplicationSet applicationSet)
Called by ApplicationSet after the application has been added to the ApplicationSet. This method should check the ApplicationSet to make sure that all needed applications are already in ApplicationSet, and if not, it should add them to the ApplicationSet (by calling ApplicationSet.addApplicationBefore(neededApplication,this))


getSearcher

ApplicationToInstall.Searcher getSearcher()