| java.lang.Object com.izforge.izpack.installer.UnpackerBase
All known Subclasses: com.izforge.izpack.installer.MultiVolumeUnpacker, com.izforge.izpack.installer.Unpacker,
UnpackerBase | abstract public class UnpackerBase implements IUnpacker(Code) | | Abstract base class for all unpacker implementations.
author: Dennis Reil, |
Method Summary | |
protected void | addToInstances() Adds this to the map of all existent instances of Unpacker. | protected List[] | getCustomActions() Returns the defined custom actions split into types including a constructed type for the file
related installer listeners. | public boolean | getResult() Return the state of the operation. | public static HashMap | getRunningInstances() Returns a copy of the active unpacker instances. | protected void | handleAdditionalUninstallData(UninstallData udata, List[] customData) Adds additional unistall data to the uninstall data object. | protected void | informListeners(List[] customActions, int action, Object firstParam, Object secondParam, Object thirdParam) Informs all listeners which would be informed at the given action type. | public static boolean | interruptAll(long waitTime) Initiate interrupt of all alive Unpacker and waits until all Unpacker are interrupted or the
wait time has arrived. | public static synchronized boolean | isDiscardInterrupt() Returns whether an interrupt request should be discarded or not. | public static boolean | isInterruptDesired() Returns the interrupt desired state. | protected boolean | mkDirsWithEnhancement(File dest, PackFile pf, List[] customActions) Creates the given directory recursive and calls the method "afterDir" of each listener with
the current file object and the pack file object. | protected boolean | performInterrupted() Sets the interrupt flag for this Unpacker to INTERRUPTED if the previos state was INTERRUPT
or INTERRUPTED and returns whether interrupt was initiate or not. | protected void | performUpdateChecks(ArrayList<UpdateCheck> updatechecks) | protected void | putUninstaller() Puts the uninstaller. | protected void | removeFromInstances() Removes this from the map of all existent instances of Unpacker. | abstract public void | run() | public static synchronized void | setDiscardInterrupt(boolean di) Sets the discard interrupt flag. | public void | setRules(RulesEngine rules) | public void | writeInstallationInformation() Writes information about the installed packs and the variables at
installation time. |
LANG_FILE_NAME | final protected static String LANG_FILE_NAME(Code) | | The name of the XML file that specifies the panel langpack
|
absolute_installpath | protected File absolute_installpath(Code) | | The absolute path of the installation. (NOT the canonical!)
|
discardInterrupt | protected static boolean discardInterrupt(Code) | | Do not perform a interrupt call.
|
interruptDesired | protected static boolean interruptDesired(Code) | | Interrupt flag if global interrupt is desired.
|
result | protected boolean result(Code) | | The result of the operation.
|
addToInstances | protected void addToInstances()(Code) | | Adds this to the map of all existent instances of Unpacker.
|
getCustomActions | protected List[] getCustomActions()(Code) | | Returns the defined custom actions split into types including a constructed type for the file
related installer listeners.
array of lists of custom action data like listeners |
getResult | public boolean getResult()(Code) | | Return the state of the operation.
true if the operation was successful, false otherwise. |
getRunningInstances | public static HashMap getRunningInstances()(Code) | | Returns a copy of the active unpacker instances.
a copy of active unpacker instances |
handleAdditionalUninstallData | protected void handleAdditionalUninstallData(UninstallData udata, List[] customData)(Code) | | Adds additional unistall data to the uninstall data object.
Parameters: udata - unistall data Parameters: customData - array of lists of custom action data like uninstaller listeners |
informListeners | protected void informListeners(List[] customActions, int action, Object firstParam, Object secondParam, Object thirdParam) throws Exception(Code) | | Informs all listeners which would be informed at the given action type.
Parameters: customActions - array of lists with the custom action objects Parameters: action - identifier for which callback should be called Parameters: firstParam - first parameter for the call Parameters: secondParam - second parameter for the call Parameters: thirdParam - third parameter for the call |
interruptAll | public static boolean interruptAll(long waitTime)(Code) | | Initiate interrupt of all alive Unpacker and waits until all Unpacker are interrupted or the
wait time has arrived. If the doNotInterrupt flag in InstallerListener is set to true, the
interrupt will be discarded.
Parameters: waitTime - wait time in millisecounds true if the interrupt will be performed, false if the interrupt will be discarded |
isDiscardInterrupt | public static synchronized boolean isDiscardInterrupt()(Code) | | Returns whether an interrupt request should be discarded or not.
Returns the discard interrupt flag |
isInterruptDesired | public static boolean isInterruptDesired()(Code) | | Returns the interrupt desired state.
the interrupt desired state |
mkDirsWithEnhancement | protected boolean mkDirsWithEnhancement(File dest, PackFile pf, List[] customActions) throws Exception(Code) | | Creates the given directory recursive and calls the method "afterDir" of each listener with
the current file object and the pack file object. On error an exception is raised.
Parameters: dest - the directory which should be created Parameters: pf - current pack file object Parameters: customActions - all defined custom actions false on error, true else throws: Exception - |
performInterrupted | protected boolean performInterrupted()(Code) | | Sets the interrupt flag for this Unpacker to INTERRUPTED if the previos state was INTERRUPT
or INTERRUPTED and returns whether interrupt was initiate or not.
whether interrupt was initiate or not |
putUninstaller | protected void putUninstaller() throws Exception(Code) | | Puts the uninstaller.
exception: Exception - Description of the Exception |
removeFromInstances | protected void removeFromInstances()(Code) | | Removes this from the map of all existent instances of Unpacker.
|
run | abstract public void run()(Code) | | |
setDiscardInterrupt | public static synchronized void setDiscardInterrupt(boolean di)(Code) | | Sets the discard interrupt flag.
Parameters: di - the discard interrupt flag to set |
|
|