com.izforge.izpack.event
Class SimpleUninstallerListener

java.lang.Object
  extended by com.izforge.izpack.event.SimpleUninstallerListener
All Implemented Interfaces:
UninstallerListener
Direct Known Subclasses:
AntActionUninstallerListener, NativeUninstallerListener

public class SimpleUninstallerListener
extends java.lang.Object
implements UninstallerListener

This class implements all methods of interface UninstallerListener, but do not do enything. It can be used as base class to save implementation of unneeded methods.

Author:
Klaus Bartz

Field Summary
 
Fields inherited from interface com.izforge.izpack.event.UninstallerListener
AFTER_DELETE, AFTER_DELETION, BEFORE_DELETE, BEFORE_DELETION
 
Constructor Summary
SimpleUninstallerListener()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUninstallerListener

public SimpleUninstallerListener()
Method Detail

beforeDeletion

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

Specified by:
beforeDeletion in interface UninstallerListener
Parameters:
files - all files which should be deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

beforeDelete

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

Specified by:
beforeDelete in interface UninstallerListener
Parameters:
file - file which should be deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

afterDelete

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

Specified by:
afterDelete in interface UninstallerListener
Parameters:
file - file which was just deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

afterDeletion

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

Specified by:
afterDeletion in interface UninstallerListener
Parameters:
files - all files which where deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception

isFileListener

public boolean isFileListener()
Description copied from interface: UninstallerListener
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.

Specified by:
isFileListener in interface UninstallerListener
Returns:
true if this listener would be informed at every delete operation, else false