|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.installer.InstallerBase
public class InstallerBase
Common utility functions for the GUI and text installers. (Do not import swing/awt classes to this class.)
| Field Summary | |
|---|---|
private static java.lang.String |
CONDITIONS_SPECRESOURCENAME
Resource name of the conditions specification |
private java.util.Map<java.lang.String,java.util.List<DynamicVariable>> |
dynamicvariables
|
private java.util.List<InstallerRequirement> |
installerrequirements
|
protected static java.lang.String |
LANG_FILE_NAME
The base name of the XML file that specifies the custom langpack. |
private RulesEngine |
rules
|
| Constructor Summary | |
|---|---|
InstallerBase()
|
|
| Method Summary | |
|---|---|
protected void |
addCustomLangpack(AutomatedInstallData idata)
Add the contents of a custom langpack (if exist) to the previos loaded comman langpack. |
private java.lang.String |
buildWindowsDefaultPath()
Get the default path for Windows (i.e Program Files/...). |
private java.lang.String |
buildWindowsDefaultPathFromProps()
just plain wrong in case the programfiles are not stored where the developer expects them. |
private void |
checkForPrivilegedExecution(Info info)
|
boolean |
checkInstallerRequirements(AutomatedInstallData installdata)
|
java.util.List<java.lang.String> |
getAvailableLangPacks()
Returns an ArrayList of the available langpacks ISO3 codes. |
java.io.InputStream |
getResource(java.lang.String res)
Gets the stream to a resource. |
RulesEngine |
getRules()
|
protected void |
loadConditions(AutomatedInstallData installdata)
Reads the conditions specification file and initializes the rules engine. |
private void |
loadCustomData(AutomatedInstallData installdata)
Loads custom data like listener and lib references if exist and fills the installdata. |
protected void |
loadDynamicVariables()
Loads Dynamic Variables. |
void |
loadInstallData(AutomatedInstallData installdata)
Loads the installation data. |
void |
loadInstallerRequirements()
Load installer conditions |
protected void |
refreshDynamicVariables(VariableSubstitutor substitutor,
AutomatedInstallData installdata)
Refreshes Dynamic Variables. |
protected void |
showMissingRequirementMessage(java.lang.String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String CONDITIONS_SPECRESOURCENAME
private RulesEngine rules
private java.util.List<InstallerRequirement> installerrequirements
private java.util.Map<java.lang.String,java.util.List<DynamicVariable>> dynamicvariables
protected static final java.lang.String LANG_FILE_NAME
| Constructor Detail |
|---|
public InstallerBase()
| Method Detail |
|---|
public java.util.List<java.lang.String> getAvailableLangPacks()
throws java.lang.Exception
java.lang.Exception - Description of the Exceptionpublic RulesEngine getRules()
public void loadInstallData(AutomatedInstallData installdata)
throws java.lang.Exception
installdata.
All system properties are available as $SYSTEM_
installdata - Where to store the installation data.
java.lang.Exception - Description of the Exceptionprivate void checkForPrivilegedExecution(Info info)
protected void addCustomLangpack(AutomatedInstallData idata)
idata - install data to be usedprivate java.lang.String buildWindowsDefaultPath()
private java.lang.String buildWindowsDefaultPathFromProps()
private void loadCustomData(AutomatedInstallData installdata)
throws java.lang.Exception
installdata - installdata into which the custom action data should be stored
java.lang.Exceptionprotected void loadConditions(AutomatedInstallData installdata)
protected void loadDynamicVariables()
public void loadInstallerRequirements()
throws java.lang.Exception
java.lang.Exception
public boolean checkInstallerRequirements(AutomatedInstallData installdata)
throws java.lang.Exception
java.lang.Exceptionprotected void showMissingRequirementMessage(java.lang.String message)
public java.io.InputStream getResource(java.lang.String res)
throws java.lang.Exception
res - The resource id.
java.lang.Exception
protected void refreshDynamicVariables(VariableSubstitutor substitutor,
AutomatedInstallData installdata)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||