com.izforge.izpack.event
Interface UninstallerListener

All Known Implementing Classes:
AntActionUninstallerListener, NativeUninstallerListener, RegistryUninstallerListener, SimpleUninstallerListener

public interface UninstallerListener

Implementations of this class are used to handle customizing uninstallation. The defined methods are called from the destroyer at different, well defined points of uninstallation.

Author:
Klaus Bartz

Field Summary
static int AFTER_DELETE
           
static int AFTER_DELETION
           
static int BEFORE_DELETE
           
static int BEFORE_DELETION
           
 
Method Summary
 void afterDelete(java.io.File file, AbstractUIProgressHandler handler)
          This method will be called from the destroyer after the given file was deleted.
 void afterDeletion(java.util.List files, AbstractUIProgressHandler handler)
          This method will be called from the destroyer after the given files are deleted.
 void beforeDelete(java.io.File file, AbstractUIProgressHandler handler)
          This method will be called from the destroyer before the given file will be deleted.
 void beforeDeletion(java.util.List files, AbstractUIProgressHandler handler)
          This method will be called from the destroyer before the given files will be deleted.
 boolean isFileListener()
          Returns true if this listener would be informed at every delete operation, else false.
 

Field Detail

BEFORE_DELETION

static final int BEFORE_DELETION
See Also:
Constant Field Values

AFTER_DELETION

static final int AFTER_DELETION
See Also:
Constant Field Values

BEFORE_DELETE

static final int BEFORE_DELETE
See Also:
Constant Field Values

AFTER_DELETE

static final int AFTER_DELETE
See Also:
Constant Field Values
Method Detail

beforeDeletion

void beforeDeletion(java.util.List files,
                    AbstractUIProgressHandler handler)
                    throws java.lang.Exception
This method will be called from the destroyer before the given files will be deleted.

Parameters:
files - all files which should be deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

isFileListener

boolean isFileListener()
Returns true if this listener would be informed at every delete operation, else false. If it is true, the listener will be called two times (before and after) of every action. Handle carefully, else performance problems are possible.

Returns:
true if this listener would be informed at every delete operation, else false

beforeDelete

void beforeDelete(java.io.File file,
                  AbstractUIProgressHandler handler)
                  throws java.lang.Exception
This method will be called from the destroyer before the given file will be deleted.

Parameters:
file - file which should be deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

afterDelete

void afterDelete(java.io.File file,
                 AbstractUIProgressHandler handler)
                 throws java.lang.Exception
This method will be called from the destroyer after the given file was deleted.

Parameters:
file - file which was just deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

afterDeletion

void afterDeletion(java.util.List files,
                   AbstractUIProgressHandler handler)
                   throws java.lang.Exception
This method will be called from the destroyer after the given files are deleted.

Parameters:
files - all files which where deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception