|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.izforge.izpack.uninstaller.Destroyer
public class Destroyer
The files destroyer class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Destroyer(java.lang.String installPath,
boolean forceDestroy,
AbstractUIProgressHandler handler)
The constructor. |
|
| Method Summary | |
|---|---|
private void |
cleanup(java.io.File file)
Makes some reccursive cleanups. |
private void |
execRootScript(java.lang.String aRootScript)
Removes the given files as root for the given Users |
private java.util.ArrayList<ExecutableFile> |
getExecutablesList()
Gets the List of all Executables |
private java.util.ArrayList<java.io.File> |
getFilesList()
Returns an ArrayList of the files to delete. |
private java.util.List[] |
getListenerLists()
Load the defined uninstall listener objects. |
private java.util.ArrayList<java.lang.String> |
getRootScripts()
Gets the root files. |
private void |
informListeners(java.util.List listeners,
int action,
java.lang.Object param,
AbstractUIProgressHandler handler)
Informs all listeners. |
void |
run()
The run method. |
| Methods inherited from class java.lang.Thread |
|---|
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, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean forceDestroy
private java.lang.String installPath
private AbstractUIProgressHandler handler
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
private java.util.ArrayList<java.io.File> getFilesList()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
private java.util.ArrayList<ExecutableFile> getExecutablesList()
throws java.lang.Exception
java.lang.Exception
private java.util.ArrayList<java.lang.String> getRootScripts()
throws java.lang.Exception
java.lang.Exceptionprivate void execRootScript(java.lang.String aRootScript)
aRootScript - The Script to exec as uninstall time by root.
private void cleanup(java.io.File file)
throws java.lang.Exception
file - The file to wipe.
java.lang.Exception - Description of the Exception
private java.util.List[] getListenerLists()
throws java.lang.Exception
java.lang.Exception
private 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||