|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.installer.InstallerBase
com.izforge.izpack.installer.AutomatedInstaller
public class AutomatedInstaller
Runs the install process in text only (no GUI) mode.
| Field Summary | |
|---|---|
private AutomatedInstallData |
idata
The automated installation data. |
private java.util.TreeMap<java.lang.String,java.lang.Integer> |
panelInstanceCount
|
private boolean |
result
The result of the installation. |
| Fields inherited from class com.izforge.izpack.installer.InstallerBase |
|---|
LANG_FILE_NAME |
| Constructor Summary | |
|---|---|
AutomatedInstaller(java.lang.String inputFilename)
Constructing an instance triggers the install. |
|
| Method Summary | |
|---|---|
private java.util.List<PanelAction> |
createPanelActionsFromStringList(Panel panel,
java.util.List<java.lang.String> actions)
|
protected void |
doInstall()
Runs the automated installation logic for each panel in turn. |
private void |
executePostValidateActions(Panel panel,
AbstractUIHandler handler)
|
private void |
executePreActivateActions(Panel panel,
AbstractUIHandler handler)
|
private void |
executePreConstructActions(Panel panel,
AbstractUIHandler handler)
|
private void |
executePreValidateActions(Panel panel,
AbstractUIHandler handler)
|
private PanelAutomation |
getPanelAutomationHelper(Panel p)
Try to get the automation helper for the specified panel. |
boolean |
getResult()
Get the result of the installation. |
IXMLElement |
getXMLData(java.io.File input)
Loads the xml data for the automated mode. |
private void |
installPanel(Panel p,
PanelAutomation automationHelper,
IXMLElement panelRoot)
Run the installation logic for a panel. |
private IXMLElement |
updateInstanceCount(Panel p)
Update the panelInstanceCount object with a panel. |
private void |
validatePanel(Panel p)
Validate a panel. |
private boolean |
writeUninstallData()
Writes the uninstalldata. |
| Methods inherited from class com.izforge.izpack.installer.InstallerBase |
|---|
addCustomLangpack, checkInstallerRequirements, getAvailableLangPacks, getResource, getRules, loadConditions, loadDynamicVariables, loadInstallData, loadInstallerRequirements, refreshDynamicVariables, showMissingRequirementMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.TreeMap<java.lang.String,java.lang.Integer> panelInstanceCount
private AutomatedInstallData idata
private boolean result
| Constructor Detail |
|---|
public AutomatedInstaller(java.lang.String inputFilename)
throws java.lang.Exception
inputFilename - Name of the file containing the installation data.
java.lang.Exception - Description of the Exception| Method Detail |
|---|
private boolean writeUninstallData()
AutomatedInstaller and InstallerFrame can't share this code ...
:-/ TODO: We should try to fix this in the future.
protected void doInstall()
throws java.lang.Exception
java.lang.Exception
private void installPanel(Panel p,
PanelAutomation automationHelper,
IXMLElement panelRoot)
throws InstallerException
p - The panel to install.automationHelper - The helper of the panel.panelRoot - The xml element describing the panel.
InstallerException - if something went wrong while installing.private IXMLElement updateInstanceCount(Panel p)
p - The panel.
this.panelInstanceCountprivate PanelAutomation getPanelAutomationHelper(Panel p)
p - The panel to handle.
private void validatePanel(Panel p)
throws InstallerException
p - The panel to validate
InstallerException - thrown if the validation fails.
public IXMLElement getXMLData(java.io.File input)
throws java.io.IOException
input - The file containing the installation data.
java.io.IOException - thrown if there are problems reading the file.public boolean getResult()
private java.util.List<PanelAction> createPanelActionsFromStringList(Panel panel,
java.util.List<java.lang.String> actions)
private void executePreConstructActions(Panel panel,
AbstractUIHandler handler)
private void executePreActivateActions(Panel panel,
AbstractUIHandler handler)
private void executePreValidateActions(Panel panel,
AbstractUIHandler handler)
private void executePostValidateActions(Panel panel,
AbstractUIHandler handler)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||