public class Destroyer
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
private boolean |
forceDestroy
True if the destroyer must force the recursive deletion.
|
private AbstractUIProgressHandler |
handler
the destroyer listener.
|
private java.lang.String |
installPath
The installation path.
|
| Constructor and Description |
|---|
Destroyer(java.lang.String installPath,
boolean forceDestroy,
AbstractUIProgressHandler handler)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
cleanup(java.io.File file)
Makes some reccursive cleanups.
|
private java.util.ArrayList |
getExecutablesList() |
private java.util.ArrayList |
getFilesList()
Returns an ArrayList of the files to delete.
|
private java.util.List[] |
getListenerLists()
Load the defined uninstall listener objects.
|
private void |
informListeners(java.util.List listeners,
int action,
java.lang.Object param,
AbstractUIProgressHandler handler)
Informs all listeners.
|
void |
run()
The run method.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate boolean forceDestroy
private java.lang.String installPath
private AbstractUIProgressHandler handler
public Destroyer(java.lang.String installPath,
boolean forceDestroy,
AbstractUIProgressHandler handler)
installPath - The installation path.forceDestroy - Shall we force the recursive deletion.handler - The destroyer listener.public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprivate java.util.ArrayList getFilesList()
throws java.lang.Exception
java.lang.Exception - Description of the Exceptionprivate java.util.ArrayList getExecutablesList()
throws java.lang.Exception
java.lang.Exceptionprivate void cleanup(java.io.File file)
throws java.lang.Exception
file - The file to wipe.java.lang.Exception - Description of the Exceptionprivate java.util.List[] getListenerLists()
throws java.lang.Exception
java.lang.Exceptionprivate void informListeners(java.util.List listeners,
int action,
java.lang.Object param,
AbstractUIProgressHandler handler)
listeners - list with the listener objectsaction - identifier which callback should be calledparam - parameter for the callhandler - the current progress handler