public class ConfigurationInstallerListener extends AbstractProgressInstallerListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationInstallerListener.ConfigType |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONDITION_ATTR |
static String |
CONFIGURABLE_ATTR |
static String |
CONFIGURABLESET_ATTR |
static String |
CONFIGURATIONACTION_ATTR |
static String |
SPEC_FILE_NAME
Name of the specification file
|
| Constructor and Description |
|---|
ConfigurationInstallerListener(InstallData installData,
Resources resources,
VariableSubstitutor replacer,
ProgressNotifiers notifiers)
Constructs a ConfigurationInstallerListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPack(Pack pack)
Invoked after a pack is installed.
|
void |
afterPacks(List<Pack> packs,
ProgressListener listener)
Invoked after packs are installed.
|
void |
beforePack(Pack pack)
Invoked before a pack is installed.
|
void |
beforePacks(List<Pack> packs)
Invoked before packs are installed.
|
Map<String,Map<Object,List<ConfigurationAction>>> |
getActions()
Returns the actions map.
|
protected List<ConfigurationAction> |
getActions(String packName,
String order)
Returns the defined actions for the given pack in the requested order.
|
protected String |
getAttribute(IXMLElement element,
String attribute) |
void |
initialise()
Initialises the listener.
|
protected void |
parseError(IXMLElement parent,
String message)
Create parse error with consistent messages.
|
protected void |
parseError(String message)
Create parse error with consistent messages.
|
void |
readAndAddEntries(IXMLElement parent,
SingleConfigurableTask task) |
protected List<ConfigurationActionTask> |
readConfigurables(IXMLElement parent) |
protected List<ConfigurationActionTask> |
readConfigurableSets(IXMLElement parent) |
protected Properties |
readVariables(IXMLElement parent) |
protected String |
requireAttribute(IXMLElement element,
String attribute)
Call getAttribute on an element, producing a meaningful error message if not present, or
empty.
|
getInstallData, getMessage, getProgressNotifierId, getProgressNotifiers, notifyProgress, setProgressNotifierafterDir, afterFile, beforeDir, beforeFile, beforePacks, isFileListenerpublic static final String SPEC_FILE_NAME
public static final String CONFIGURATIONACTION_ATTR
public static final String CONFIGURABLESET_ATTR
public static final String CONFIGURABLE_ATTR
public static final String CONDITION_ATTR
public ConfigurationInstallerListener(InstallData installData, Resources resources, VariableSubstitutor replacer, ProgressNotifiers notifiers)
installData - the installation dataresources - the resourcesreplacer - the variable replacernotifiers - the progress notifierspublic Map<String,Map<Object,List<ConfigurationAction>>> getActions()
public void initialise()
initialise in interface InstallationListenerinitialise in class AbstractInstallerListenerIzPackException - for any errorpublic void beforePacks(List<Pack> packs)
beforePacks in interface InstallerListenerbeforePacks in class AbstractInstallerListenerpacks - the packs to be installedIzPackException - for any errorpublic void beforePack(Pack pack)
beforePack in interface InstallerListenerbeforePack in class AbstractInstallerListenerpack - the packIzPackException - for any errorpublic void afterPack(Pack pack)
afterPack in interface InstallerListenerafterPack in class AbstractInstallerListenerpack - the packIzPackException - for any errorpublic void afterPacks(List<Pack> packs, ProgressListener listener)
afterPacks in interface InstallerListenerafterPacks in class AbstractInstallerListenerpacks - the installed packslistener - the progress listenerIzPackException - for any errorprotected List<ConfigurationAction> getActions(String packName, String order)
packName - name of the pack for which the actions should be returnedorder - order to be used; valid are beforepack and afterpackprotected List<ConfigurationActionTask> readConfigurableSets(IXMLElement parent) throws InstallerException
InstallerExceptionprotected List<ConfigurationActionTask> readConfigurables(IXMLElement parent) throws InstallerException
InstallerExceptionpublic void readAndAddEntries(IXMLElement parent, SingleConfigurableTask task) throws InstallerException
InstallerExceptionprotected Properties readVariables(IXMLElement parent) throws InstallerException
InstallerExceptionprotected String requireAttribute(IXMLElement element, String attribute) throws InstallerException
element - The element to get the attribute value ofattribute - The name of the attribute to getInstallerExceptionprotected String getAttribute(IXMLElement element, String attribute) throws InstallerException
InstallerExceptionprotected void parseError(String message) throws InstallerException
message - Brief message explaining errorInstallerExceptionprotected void parseError(IXMLElement parent, String message) throws InstallerException
parent - The element in which the error occuredmessage - Brief message explaining errorInstallerExceptionCopyright © 2001–2025. All rights reserved.