|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.event.SimpleInstallerListener
com.izforge.izpack.event.NativeInstallerListener
com.izforge.izpack.event.RegistryInstallerListener
public class RegistryInstallerListener
Installer custom action for handling registry entries on Windows. On Unix nothing will be done. The actions which should be performed are defined in a resource file named "RegistrySpec.xml". This resource should be declared in the installation definition file (install.xml), else an exception will be raised during execution of this custom action. The related DTD is appl/install/IzPack/resources/registry.dtd.
Field Summary | |
---|---|
private static java.lang.String |
REG_BASENAME
|
private static java.lang.String |
REG_BIN
|
private static java.lang.String |
REG_DATA
|
private static java.lang.String |
REG_DWORD
|
private static java.lang.String |
REG_KEY
|
private static java.lang.String |
REG_KEYPATH
|
private static java.lang.String |
REG_MULTI
|
private static java.lang.String |
REG_OVERRIDE
|
private static java.lang.String |
REG_ROOT
|
private static java.lang.String |
REG_STRING
|
private static java.lang.String |
REG_VALUE
|
private static java.lang.String |
SPEC_FILE_NAME
The name of the XML file that specifies the registry entries. |
Fields inherited from class com.izforge.izpack.event.SimpleInstallerListener |
---|
doInformProgressBar, LANG_FILE_NAME, langpack |
Fields inherited from interface com.izforge.izpack.event.InstallerListener |
---|
AFTER_DIR, AFTER_FILE, AFTER_PACK, AFTER_PACKS, BEFORE_DIR, BEFORE_FILE, BEFORE_PACK, BEFORE_PACKS |
Constructor Summary | |
---|---|
RegistryInstallerListener()
Default constructor. |
Method Summary | |
---|---|
void |
afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of all packs was performed. |
void |
beforePacks(AutomatedInstallData idata,
java.lang.Integer npacks,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of all packs will be performed. |
private byte[] |
extractBytes(XMLElement element,
java.lang.String byteString)
|
private void |
initializeRegistryHandler(AutomatedInstallData idata)
|
private void |
performKeySetting(XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one key. |
private void |
performPack(XMLElement pack,
VariableSubstitutor substitutor)
Performs the registry settings for the given pack. |
private void |
performValueSetting(XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one value. |
private int |
resolveRoot(XMLElement regEntry,
java.lang.String root,
VariableSubstitutor substitutor)
|
Methods inherited from class com.izforge.izpack.event.SimpleInstallerListener |
---|
afterDir, afterFile, afterInstallerInitialization, afterPack, beforeDir, beforeFile, beforePack, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, isFileListener, setInstalldata, setProgressBarCaller, setSpecHelper |
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 SPEC_FILE_NAME
private static final java.lang.String REG_KEY
private static final java.lang.String REG_VALUE
private static final java.lang.String REG_ROOT
private static final java.lang.String REG_BASENAME
private static final java.lang.String REG_KEYPATH
private static final java.lang.String REG_DWORD
private static final java.lang.String REG_STRING
private static final java.lang.String REG_MULTI
private static final java.lang.String REG_BIN
private static final java.lang.String REG_DATA
private static final java.lang.String REG_OVERRIDE
Constructor Detail |
---|
public RegistryInstallerListener()
Method Detail |
---|
public void beforePacks(AutomatedInstallData idata, java.lang.Integer npacks, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
beforePacks
in interface InstallerListener
beforePacks
in class NativeInstallerListener
idata
- object containing the current installation datanpacks
- number of packs which are defined for this installationhandler
- a handler to the current used UIProgressHandler
java.lang.Exception
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
afterPacks
in interface InstallerListener
afterPacks
in class SimpleInstallerListener
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandler
java.lang.Exception
private void performPack(XMLElement pack, VariableSubstitutor substitutor) throws java.lang.Exception
pack
- XML elemtent which contains the registry settings for one pack
java.lang.Exception
private void performValueSetting(XMLElement regEntry, VariableSubstitutor substitutor) throws java.lang.Exception
regEntry
- element which contains the description of the value to be setsubstitutor
- variable substitutor to be used for revising the regEntry contents
java.lang.Exception
private byte[] extractBytes(XMLElement element, java.lang.String byteString) throws java.lang.Exception
java.lang.Exception
private void performKeySetting(XMLElement regEntry, VariableSubstitutor substitutor) throws java.lang.Exception
regEntry
- element which contains the description of the key to be createdsubstitutor
- variable substitutor to be used for revising the regEntry contents
java.lang.Exception
private int resolveRoot(XMLElement regEntry, java.lang.String root, VariableSubstitutor substitutor) throws java.lang.Exception
java.lang.Exception
private void initializeRegistryHandler(AutomatedInstallData idata) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |