Thread.State, Thread.UncaughtExceptionHandler
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 String |
installPath
The installation path.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Destroyer(String installPath,
boolean forceDestroy,
AbstractUIProgressHandler handler)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
cleanup(File file)
Makes some reccursive cleanups.
|
private ArrayList |
getExecutablesList() |
private ArrayList |
getFilesList()
Returns an ArrayList of the files to delete.
|
private List[] |
getListenerLists()
Load the defined uninstall listener objects.
|
private void |
informListeners(List listeners,
int action,
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, yield
private boolean forceDestroy
private String installPath
private AbstractUIProgressHandler handler
public Destroyer(String installPath, boolean forceDestroy, AbstractUIProgressHandler handler)
installPath
- The installation path.forceDestroy
- Shall we force the recursive deletion.handler
- The destroyer listener.public void run()
private ArrayList getFilesList() throws Exception
Exception
- Description of the Exceptionprivate ArrayList getExecutablesList() throws Exception
Exception
private void cleanup(File file) throws Exception
file
- The file to wipe.Exception
- Description of the Exceptionprivate List[] getListenerLists() throws Exception
Exception
private void informListeners(List listeners, int action, Object param, AbstractUIProgressHandler handler)
listeners
- list with the listener objectsaction
- identifier which callback should be calledparam
- parameter for the callhandler
- the current progress handlerWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses