|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.event.SimpleInstallerListener
com.izforge.izpack.event.BSFInstallerListener
public class BSFInstallerListener
| Field Summary | |
|---|---|
private java.util.HashMap<java.lang.String,java.util.ArrayList<BSFAction>> |
actions
|
private java.lang.String |
currentPack
|
private AutomatedInstallData |
installdata
|
static java.lang.String |
SPEC_FILE_NAME
|
private java.util.ArrayList<BSFAction> |
uninstActions
|
| Fields inherited from class com.izforge.izpack.event.SimpleInstallerListener |
|---|
doInformProgressBar, LANG_FILE_NAME, langpack |
| Fields inherited from interface com.izforge.izpack.event.InstallerListener |
|---|
AFTER_DIR, AFTER_FILE, AFTER_PACK, AFTER_PACKS, BEFORE_DIR, BEFORE_FILE, BEFORE_PACK, BEFORE_PACKS |
| Constructor Summary | |
|---|---|
BSFInstallerListener()
|
|
| Method Summary | |
|---|---|
void |
afterDir(java.io.File file,
PackFile pack)
This method will be called from the unpacker after one directory was created. |
void |
afterFile(java.io.File file,
PackFile pack)
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 file,
PackFile pack)
This method will be called from the unpacker before one directory should be created. |
void |
beforeFile(java.io.File file,
PackFile pack)
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. |
private int |
getActionCount(AutomatedInstallData idata)
|
protected java.util.ArrayList<BSFAction> |
getActions(java.lang.String packName)
|
boolean |
isFileListener()
Returns true if this listener would be informed at every file and directory installation, else false. |
private void |
performAllActions(java.lang.String packName,
java.lang.String order,
AbstractUIProgressHandler handler,
java.lang.Object[] callParams)
|
private BSFAction |
readAction(IXMLElement element,
AutomatedInstallData idata)
|
| Methods inherited from class com.izforge.izpack.event.SimpleInstallerListener |
|---|
afterInstallerInitialization, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, setInstalldata, setProgressBarCaller, setSpecHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SPEC_FILE_NAME
private java.util.HashMap<java.lang.String,java.util.ArrayList<BSFAction>> actions
private java.util.ArrayList<BSFAction> uninstActions
private java.lang.String currentPack
private AutomatedInstallData installdata
| Constructor Detail |
|---|
public BSFInstallerListener()
| Method Detail |
|---|
public void beforePacks(AutomatedInstallData idata,
java.lang.Integer npacks,
AbstractUIProgressHandler handler)
throws java.lang.Exception
InstallerListener
beforePacks in interface InstallerListenerbeforePacks in class SimpleInstallerListeneridata - 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
public void afterPack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
throws java.lang.Exception
InstallerListener
afterPack in interface InstallerListenerafterPack in class SimpleInstallerListenerpack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandler
java.lang.Exception
public void afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
throws java.lang.Exception
InstallerListener
afterPacks in interface InstallerListenerafterPacks in class SimpleInstallerListeneridata - object containing the current installation datahandler - a handler to the current used UIProgressHandler
java.lang.Exception
public void beforePack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
throws java.lang.Exception
InstallerListener
beforePack in interface InstallerListenerbeforePack in class SimpleInstallerListenerpack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandler
java.lang.Exception
public void afterDir(java.io.File file,
PackFile pack)
throws java.lang.Exception
InstallerListener
afterDir in interface InstallerListenerafterDir in class SimpleInstallerListenerfile - current File object of the just created directorypack - corresponding PackFile object
java.lang.Exception
public void afterFile(java.io.File file,
PackFile pack)
throws java.lang.Exception
InstallerListener
afterFile in interface InstallerListenerafterFile in class SimpleInstallerListenerfile - current File object of the just installed filepack - corresponding PackFile object
java.lang.Exception
public void beforeDir(java.io.File file,
PackFile pack)
throws java.lang.Exception
InstallerListener
beforeDir in interface InstallerListenerbeforeDir in class SimpleInstallerListenerfile - current File object of the just directory which should be createdpack - corresponding PackFile object
java.lang.Exception
public void beforeFile(java.io.File file,
PackFile pack)
throws java.lang.Exception
InstallerListener
beforeFile in interface InstallerListenerbeforeFile in class SimpleInstallerListenerfile - current File object of the file which should be installedpack - corresponding PackFile object
java.lang.Exceptionpublic boolean isFileListener()
InstallerListener
isFileListener in interface InstallerListenerisFileListener in class SimpleInstallerListenerprotected java.util.ArrayList<BSFAction> getActions(java.lang.String packName)
private int getActionCount(AutomatedInstallData idata)
private void performAllActions(java.lang.String packName,
java.lang.String order,
AbstractUIProgressHandler handler,
java.lang.Object[] callParams)
throws InstallerException
InstallerException
private BSFAction readAction(IXMLElement element,
AutomatedInstallData idata)
throws InstallerException
InstallerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||