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(File dir,
PackFile pf)
This method will be called from the unpacker after one directory was created.
|
void |
afterFile(File file,
PackFile pf)
This method will be called from the unpacker after one file was installed.
|
void |
afterPack(Pack pack,
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(File dir,
PackFile pf)
This method will be called from the unpacker before one directory should be created.
|
void |
beforeFile(File file,
PackFile pf)
This method will be called from the unpacker before one file should be installed.
|
void |
beforePack(Pack pack,
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,
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, Integer npacks, AbstractUIProgressHandler handler) throws Exception
idata
- object containing the current installation datanpacks
- number of packs which are defined for this installationhandler
- a handler to the current used UIProgressHandlerException
void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerException
boolean isFileListener()
void beforeDir(File dir, PackFile pf) throws Exception
dir
- current File object of the just directory which should be createdpf
- corresponding PackFile objectException
void afterDir(File dir, PackFile pf) throws Exception
dir
- current File object of the just created directorypf
- corresponding PackFile objectException
void beforeFile(File file, PackFile pf) throws Exception
file
- current File object of the file which should be installedpf
- corresponding PackFile objectException
void afterFile(File file, PackFile pf) throws Exception
file
- current File object of the just installed filepf
- corresponding PackFile objectException
void afterPack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerException
void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandlerException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses