|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
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 |
afterInstallerInitialization(AutomatedInstallData data)
Called when the installer creates the listener instance, immediately after the install data is parsed. |
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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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 UIProgressHandler
java.lang.Exception
void 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 UIProgressHandler
java.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 object
java.lang.Exception
void afterDir(java.io.File dir,
PackFile pf)
throws java.lang.Exception
dir - current File object of the just created directorypf - corresponding PackFile object
java.lang.Exception
void beforeFile(java.io.File file,
PackFile pf)
throws java.lang.Exception
file - current File object of the file which should be installedpf - corresponding PackFile object
java.lang.Exception
void afterFile(java.io.File file,
PackFile pf)
throws java.lang.Exception
file - current File object of the just installed filepf - corresponding PackFile object
java.lang.Exception
void 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 UIProgressHandler
java.lang.Exception
void afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
throws java.lang.Exception
idata - object containing the current installation datahandler - a handler to the current used UIProgressHandler
java.lang.Exception
void afterInstallerInitialization(AutomatedInstallData data)
throws java.lang.Exception
data -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||