[izpack-changes] r1877 - izpack-src/trunk/src/lib/com/izforge/izpack/event

noreply at berlios.de noreply at berlios.de
Mon Oct 8 00:11:29 CEST 2007


Author: vralev
Date: 2007-10-08 00:11:27 +0200 (Mon, 08 Oct 2007)
New Revision: 1877

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/event/InstallerListener.java
   izpack-src/trunk/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
Log:
New listener interface.

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/event/InstallerListener.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/event/InstallerListener.java	2007-10-07 22:10:56 UTC (rev 1876)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/event/InstallerListener.java	2007-10-07 22:11:27 UTC (rev 1877)
@@ -152,4 +152,12 @@
      * @throws Exception
      */
     void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception;
+
+    /**
+     * Called when the installer creates the listener instance, immediately
+     * after the install data is parsed.
+     * 
+     * @param data
+     */
+    void afterInstallerInitialization(AutomatedInstallData data) throws Exception;
 }

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java	2007-10-07 22:10:56 UTC (rev 1876)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java	2007-10-07 22:11:27 UTC (rev 1877)
@@ -198,6 +198,11 @@
     {
         // Do nothing
     }
+    
+    public void afterInstallerInitialization(AutomatedInstallData data)
+    {
+       this.installdata = data;
+    }
 
     /**
      * Returns current specification helper.



More information about the izpack-changes mailing list