public class BSFInstallerListener extends AbstractProgressInstallerListener
| Modifier and Type | Field and Description |
|---|---|
static String |
SPEC_FILE_NAME |
| Constructor and Description |
|---|
BSFInstallerListener(InstallData installData,
VariableSubstitutor replacer,
Variables variables,
Resources resources,
UninstallData uninstallData,
ProgressNotifiers notifiers)
Constructs a BSFFInstallerListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterDir(File dir,
PackFile packFile,
Pack pack)
Invoked after a directory is created.
|
void |
afterFile(File file,
PackFile packFile,
Pack pack)
Invoked after a file is installed.
|
void |
afterPack(Pack pack)
Invoked after a pack is installed.
|
void |
afterPacks(List<Pack> packs,
ProgressListener listener)
Invoked after packs are installed.
|
void |
beforeDir(File dir,
PackFile packFile,
Pack pack)
Invoked before a directory is created.
|
void |
beforeFile(File file,
PackFile packFile,
Pack pack)
Invoked before a file is installed.
|
void |
beforePack(Pack pack)
Invoked before a pack is installed.
|
void |
beforePacks(List<Pack> packs)
Invoked before packs are installed.
|
void |
initialise()
Initialises the listener.
|
boolean |
isFileListener()
Determines if the listener should be notified of every file and directory installation.
|
getInstallData, getMessage, getProgressNotifierId, getProgressNotifiers, notifyProgress, setProgressNotifierbeforePackspublic static final String SPEC_FILE_NAME
public BSFInstallerListener(InstallData installData, VariableSubstitutor replacer, Variables variables, Resources resources, UninstallData uninstallData, ProgressNotifiers notifiers)
installData - the installation datareplacer - the variable replacerresources - the resourcesuninstallData - the uninstallation datanotifiers - the progress notifierspublic void initialise()
initialise in interface InstallationListenerinitialise in class AbstractInstallerListenerIzPackException - if the BSF actions specification cannot be readpublic 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 errorpublic boolean isFileListener()
isFileListener in interface InstallationListenerisFileListener in class AbstractInstallerListenertruepublic void beforeDir(File dir, PackFile packFile, Pack pack)
beforeDir in interface InstallerListenerbeforeDir in class AbstractInstallerListenerdir - the directorypackFile - the corresponding pack filepack - the pack that packFile comes fromIzPackException - for any errorpublic void afterDir(File dir, PackFile packFile, Pack pack)
afterDir in interface InstallerListenerafterDir in class AbstractInstallerListenerdir - the directorypackFile - the corresponding pack filepack - the pack that packFile comes fromIzPackException - for any errorpublic void beforeFile(File file, PackFile packFile, Pack pack)
beforeFile in interface InstallerListenerbeforeFile in class AbstractInstallerListenerfile - the filepackFile - the corresponding pack filepack - the pack that packFile comes fromIzPackException - for any errorpublic void afterFile(File file, PackFile packFile, Pack pack)
afterFile in interface InstallerListenerafterFile in class AbstractInstallerListenerfile - the filepackFile - the corresponding pack filepack - the pack that packFile comes fromIzPackException - for any errorCopyright © 2001–2025. All rights reserved.