com.izforge.izpack.event
Class AntActionUninstallerListener

java.lang.Object
  extended by com.izforge.izpack.event.SimpleUninstallerListener
      extended by com.izforge.izpack.event.AntActionUninstallerListener
All Implemented Interfaces:
UninstallerListener

public class AntActionUninstallerListener
extends SimpleUninstallerListener

Uninstaller listener for performing ANT actions at uninstall time. The definition of what should be done here will be made in a specification file that is referenced by the resource id "AntActionsSpec.xml". There should be an entry in the install.xml file in the sub ELEMENT "res" of ELEMENT "resources" that references it. The specification of the xml file is done in the DTD antaction.dtd. The xml file may contain an ELEMENT "uninstall_target" that should be performed for uninstalling purposes.

Author:
Klaus Bartz

Field Summary
private  java.util.List<AntAction> antActions
          Ant actions to be performed after deletion
 
Fields inherited from interface com.izforge.izpack.event.UninstallerListener
AFTER_DELETE, AFTER_DELETION, BEFORE_DELETE, BEFORE_DELETION
 
Constructor Summary
AntActionUninstallerListener()
          Default constructor
 
Method Summary
 void afterDeletion(java.util.List files, AbstractUIProgressHandler handler)
          This method will be called from the destroyer after the given files are deleted.
 void beforeDeletion(java.util.List files, AbstractUIProgressHandler handler)
          This method will be called from the destroyer before the given files will be deleted.
 
Methods inherited from class com.izforge.izpack.event.SimpleUninstallerListener
afterDelete, beforeDelete, isFileListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

antActions

private java.util.List<AntAction> antActions
Ant actions to be performed after deletion

Constructor Detail

AntActionUninstallerListener

public AntActionUninstallerListener()
Default constructor

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
Overrides:
beforeDeletion in class SimpleUninstallerListener
Parameters:
files - all files which should be 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
Overrides:
afterDeletion in class SimpleUninstallerListener
Parameters:
files - all files which where deleted
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception