| de.webman.wminstaller.install.ModuleInstaller
All known Subclasses: de.webman.wminstaller.install.CoreModInst, de.webman.wminstaller.install.DatabaseModInst, de.webman.wminstaller.install.TomcatModInst, de.webman.wminstaller.install.WebmanModInst, de.webman.wminstaller.install.JdkModInst,
ModuleInstaller | public interface ModuleInstaller (Code) | | classes implementing this interface are acting as module installer.
Installing is seperated into a number of "modules", which are worked on
by seperated classes for better maintainability. A complete
installation is runs in four stages: pre() for all modules,
install() for all modules, post() for all
modules, configure() for all modules.
Each Module method may throw a InstallationException to
signal success or failure for the stage in question. The
InstallationException has a severity
attribute, which tells the system, that OK = action was ok, WARNING =
something looks strange, but we can continue, FAILED = something failed,
don't include module for later stages, FATAL = stop installation
completely
author: Gregor Klinke version: $Revision: 1.1 $ |
Method Summary | |
void | configure(HashMap dictionary) | String | getName() | void | install(HashMap dictionary) | void | post(HashMap dictionary) | int | pre(HashMap dictionary) prepares the module for installation (verify database connections,
writing access to directories, etc.)
Parameters: dictionary - a dictionary containing the installation parameters returns one of the following values indicating what to dowith this module: INCLUDE = install this module,IGNORE = don't bother about this module,CONFIGURE = don't install, but only configure thismodule. |
CONFIGURE | final public static int CONFIGURE(Code) | | |
IGNORE | final public static int IGNORE(Code) | | |
INCLUDE | final public static int INCLUDE(Code) | | |
configure | void configure(HashMap dictionary) throws InstallationException(Code) | | configures the receiver's module after installation (writing
initialization files, etc.)
Parameters: dictionary - a dictionary containing the installation parameters |
getName | String getName()(Code) | | returns a descriptive name of the module
|
install | void install(HashMap dictionary) throws InstallationException(Code) | | installs the receiver's module (unpacks, copies, etc.)
Parameters: dictionary - a dictionary containing the installation parameters |
post | void post(HashMap dictionary) throws InstallationException(Code) | | post-fixes the receiver's module installation (setting up
crossreferences, etc.)
Parameters: dictionary - a dictionary containing the installation parameters |
pre | int pre(HashMap dictionary) throws InstallationException(Code) | | prepares the module for installation (verify database connections,
writing access to directories, etc.)
Parameters: dictionary - a dictionary containing the installation parameters returns one of the following values indicating what to dowith this module: INCLUDE = install this module,IGNORE = don't bother about this module,CONFIGURE = don't install, but only configure thismodule. |
|
|