1 21 22 package com.izforge.izpack.event; 23 24 import java.io.File ; 25 26 import com.izforge.izpack.Pack; 27 import com.izforge.izpack.PackFile; 28 import com.izforge.izpack.installer.AutomatedInstallData; 29 import com.izforge.izpack.util.AbstractUIProgressHandler; 30 31 40 public interface InstallerListener 41 { 42 43 public static final int BEFORE_FILE = 1; 47 48 public static final int AFTER_FILE = 2; 49 50 public static final int BEFORE_DIR = 3; 51 52 public static final int AFTER_DIR = 4; 53 54 public static final int BEFORE_PACK = 5; 55 56 public static final int AFTER_PACK = 6; 57 58 public static final int BEFORE_PACKS = 7; 59 60 public static final int AFTER_PACKS = 8; 61 62 71 void beforePacks(AutomatedInstallData idata, Integer npacks, AbstractUIProgressHandler handler) 72 throws Exception ; 73 74 83 void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception ; 84 85 93 boolean isFileListener(); 94 95 104 void beforeDir(File dir, PackFile pf) throws Exception ; 105 106 115 void afterDir(File dir, PackFile pf) throws Exception ; 116 117 124 void beforeFile(File file, PackFile pf) throws Exception ; 125 126 133 void afterFile(File file, PackFile pf) throws Exception ; 134 135 144 void afterPack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception ; 145 146 154 void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception ; 155 } 156 | Popular Tags |