com.izforge.izpack.event
Class NativeInstallerListener

java.lang.Object
  extended by com.izforge.izpack.event.SimpleInstallerListener
      extended by com.izforge.izpack.event.NativeInstallerListener
All Implemented Interfaces:
InstallerListener
Direct Known Subclasses:
RegistryInstallerListener

public class NativeInstallerListener
extends SimpleInstallerListener

This class implements some methods which are needed by installer custom actions with native parts.

Author:
Klaus Bartz

Field Summary
 
Fields inherited from class com.izforge.izpack.event.SimpleInstallerListener
doInformProgressBar, LANG_FILE_NAME, langpack
 
Fields inherited from interface com.izforge.izpack.event.InstallerListener
AFTER_DIR, AFTER_FILE, AFTER_PACK, AFTER_PACKS, BEFORE_DIR, BEFORE_FILE, BEFORE_PACK, BEFORE_PACKS
 
Constructor Summary
NativeInstallerListener()
          Default constructor
NativeInstallerListener(boolean useSpecHelper)
          Constructs a native installer listener.
 
Method Summary
 void beforePacks(AutomatedInstallData idata, java.lang.Integer npacks, AbstractUIProgressHandler handler)
          This method will be called from the unpacker before the installation of all packs will be performed.
 
Methods inherited from class com.izforge.izpack.event.SimpleInstallerListener
afterDir, afterFile, afterInstallerInitialization, afterPack, afterPacks, beforeDir, beforeFile, beforePack, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, isFileListener, setInstalldata, setProgressBarCaller, setSpecHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeInstallerListener

public NativeInstallerListener()
Default constructor


NativeInstallerListener

public NativeInstallerListener(boolean useSpecHelper)
Constructs a native installer listener. If useSpecHelper is true, a specification helper will be created.

Parameters:
useSpecHelper -
Method Detail

beforePacks

public void beforePacks(AutomatedInstallData idata,
                        java.lang.Integer npacks,
                        AbstractUIProgressHandler handler)
                 throws java.lang.Exception
Description copied from interface: InstallerListener
This method will be called from the unpacker before the installation of all packs will be performed.

Specified by:
beforePacks in interface InstallerListener
Overrides:
beforePacks in class SimpleInstallerListener
Parameters:
idata - object containing the current installation data
npacks - number of packs which are defined for this installation
handler - a handler to the current used UIProgressHandler
Throws:
java.lang.Exception