public abstract class AbstractInstallerListener extends Object implements InstallerListener
InstallerListener.
This provides no-op versions of each of the methods, to simplify implementation of listeners that only need
some methods.| Constructor and Description |
|---|
AbstractInstallerListener() |
| 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 |
beforePacks(List<Pack> packs,
ProgressListener listener)
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.
|
public void initialise()
initialise in interface InstallationListenerIzPackException - for any errorpublic void beforePacks(List<Pack> packs)
beforePacks in interface InstallerListenerpacks - the packs to be installedIzPackException - for any errorpublic void beforePacks(List<Pack> packs, ProgressListener listener)
The default implementation calls beforePacks(List) for
backwards compatibility.
beforePacks in interface InstallerListenerpacks - the packs to be installedlistener - the progress listenerIzPackException - for any errorpublic void beforePack(Pack pack)
beforePack in interface InstallerListenerpack - the packIzPackException - for any errorpublic void afterPack(Pack pack)
afterPack in interface InstallerListenerpack - the packIzPackException - for any errorpublic void afterPacks(List<Pack> packs, ProgressListener listener)
afterPacks in interface InstallerListenerpacks - the installed packslistener - the progress listenerIzPackException - for any errorpublic void beforeDir(File dir, PackFile packFile, Pack pack)
beforeDir in interface InstallerListenerdir - 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 InstallerListenerdir - 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 InstallerListenerfile - 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 InstallerListenerfile - the filepackFile - the corresponding pack filepack - the pack that packFile comes fromIzPackException - for any errorpublic boolean isFileListener()
isFileListener in interface InstallationListenerCopyright © 2001–2025. All rights reserved.