public interface InstallerListener
Implementations of this class are used to handle customizing installation. The defined methods are called from the unpacker at different, well defined points of installation.
| Modifier and Type | Field and Description |
|---|---|
static int |
AFTER_DIR |
static int |
AFTER_FILE |
static int |
AFTER_PACK |
static int |
AFTER_PACKS |
static int |
BEFORE_DIR |
static int |
BEFORE_FILE |
static int |
BEFORE_PACK |
static int |
BEFORE_PACKS |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDir(java.io.File dir,
PackFile pf)
This method will be called from the unpacker after one directory was created.
|
void |
afterFile(java.io.File file,
PackFile pf)
This method will be called from the unpacker after one file was installed.
|
void |
afterPack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of one pack was
performed.
|
void |
afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of all packs was
performed.
|
void |
beforeDir(java.io.File dir,
PackFile pf)
This method will be called from the unpacker before one directory should be created.
|
void |
beforeFile(java.io.File file,
PackFile pf)
This method will be called from the unpacker before one file should be installed.
|
void |
beforePack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of one pack will be
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.
|
boolean |
isFileListener()
Returns true if this listener would be informed at every file and directory installation,
else false.
|
static final int BEFORE_FILE
static final int AFTER_FILE
static final int BEFORE_DIR
static final int AFTER_DIR
static final int BEFORE_PACK
static final int AFTER_PACK
static final int BEFORE_PACKS
static final int AFTER_PACKS
void beforePacks(AutomatedInstallData idata, java.lang.Integer npacks, AbstractUIProgressHandler handler) throws java.lang.Exception
idata - object containing the current installation datanpacks - number of packs which are defined for this installationhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionvoid beforePack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
pack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionboolean isFileListener()
void beforeDir(java.io.File dir,
PackFile pf)
throws java.lang.Exception
dir - current File object of the just directory which should be createdpf - corresponding PackFile objectjava.lang.Exceptionvoid afterDir(java.io.File dir,
PackFile pf)
throws java.lang.Exception
dir - current File object of the just created directorypf - corresponding PackFile objectjava.lang.Exceptionvoid beforeFile(java.io.File file,
PackFile pf)
throws java.lang.Exception
file - current File object of the file which should be installedpf - corresponding PackFile objectjava.lang.Exceptionvoid afterFile(java.io.File file,
PackFile pf)
throws java.lang.Exception
file - current File object of the just installed filepf - corresponding PackFile objectjava.lang.Exceptionvoid afterPack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
pack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionvoid afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
idata - object containing the current installation datahandler - a handler to the current used UIProgressHandlerjava.lang.Exception