org.browsecode.helpers.installer.applications
Class InstallMySQL

java.lang.Object
  extended by org.browsecode.helpers.installer.applications.ApplicationToInstallStub
      extended by org.browsecode.helpers.installer.applications.InstallMySQL
All Implemented Interfaces:
ApplicationToInstall

public class InstallMySQL
extends ApplicationToInstallStub


Nested Class Summary
 
Nested classes/interfaces inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
ApplicationToInstallStub.SimpleSearcherStub
 
Nested classes/interfaces inherited from interface org.browsecode.helpers.installer.applications.ApplicationToInstall
ApplicationToInstall.ExeInstaller, ApplicationToInstall.Installer, ApplicationToInstall.MacInstaller, ApplicationToInstall.MsiInstaller, ApplicationToInstall.Searcher, ApplicationToInstall.TarGzipInstaller, ApplicationToInstall.ZipInstaller
 
Field Summary
 
Fields inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
description, installedInDirectory, installerFiles, installerWebsites, name
 
Fields inherited from interface org.browsecode.helpers.installer.applications.ApplicationToInstall
INSTALLED_BUT_DIRECTORY_UNKNOWN
 
Constructor Summary
InstallMySQL()
           
 
Method Summary
 java.lang.String[] getInstalledFileName(int operatingSystem)
          A path and file that is installed when this program has been installed.
 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.
 void setInstallers(java.net.URL[] installerFile)
          Set these in order of preference -- i.e. executables first, zip files (assumed to be platform independent) last.
 void setInstallersPath(java.lang.String installersPath)
           
 
Methods inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
addedToApplicationSet, getAskToFindPreviousInstalls, getDescription, getInstalledFileMatches, getInstalledInDirectory, getInstallers, getInstallerURL, getName, getSearcher, getTryToFindPreviousInstalls, setAskUserIfInstalledBefore, setDescription, setInstalledInDirectory, setInstallerURL, setName, setTryToFindPreviousInstalls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallMySQL

public InstallMySQL()
Method Detail

setInstallers

public void setInstallers(java.net.URL[] installerFile)
Description copied from class: ApplicationToInstallStub
Set these in order of preference -- i.e. executables first, zip files (assumed to be platform independent) last.

Overrides:
setInstallers in class ApplicationToInstallStub

setInstallersPath

public void setInstallersPath(java.lang.String installersPath)

getInstaller

public ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn,
                                                   ApplicationSet applicationSet)
Description copied from interface: ApplicationToInstall
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.

Specified by:
getInstaller in interface ApplicationToInstall
Overrides:
getInstaller in class ApplicationToInstallStub
Returns:

getInstalledFileName

public java.lang.String[] getInstalledFileName(int operatingSystem)
Description copied from class: ApplicationToInstallStub
A path and file that is installed when this program has been installed. Return any possibilites that indicate that this program is installed. You may use RegExp. Some examples: Apache Tomcat would return ".*jakarta.* /webapps/" (note that space is put in because java docs won't let you put in a * immediately followed by /) MySQL would return "mysqldump.exe" and "mysqldump" The path that these files are in will be searched for in the installation process and possibly used later (in tomcat's example, or in mysql's example) If the path isn't found, the user will be prompted with installation instructions. Paths that are directories should end in a '/' and files should not end in a slash.

Specified by:
getInstalledFileName in class ApplicationToInstallStub
Parameters:
operatingSystem - The OS that the target platform is running on. This will be gathered from org.browsecode.helpers.controlcomputer.ControlComputerInterface.
Returns:

getInstallerDirections

public java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
Description copied from interface: ApplicationToInstall
Directions for installing the application by hand.

Returns: