|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.installer.event.InstallerListeners
public class InstallerListeners
A container for InstallerListeners that supports notifying each registered listener.
| Constructor Summary | |
|---|---|
InstallerListeners(AutomatedInstallData installData,
Prompt prompt)
Constructs an InstallerListeners. |
|
| Method Summary | |
|---|---|
void |
add(InstallerListener listener)
Registers a listener. |
void |
afterDir(File dir,
PackFile packFile,
Pack pack)
Invoked after a directory is created. |
void |
afterFile(File file,
PackFile packFile,
Pack pack)
Invoked after a file is installed. |
void |
afterPack(Pack pack)
Invoked after a pack is installed. |
void |
afterPacks(List<Pack> packs,
ProgressListener listener)
Invoked after packs are installed. |
void |
beforeDir(File dir,
PackFile packFile,
Pack pack)
Invoked before a directory is created. |
void |
beforeFile(File file,
PackFile packFile,
Pack pack)
Invoked before a file is installed. |
void |
beforePack(Pack pack,
int i)
Invoked before a pack is installed. |
void |
beforePacks(List<Pack> packs,
ProgressListener listener)
Invoked before packs are installed. |
InstallerListener |
get(int index)
Returns the listener at the specified index in the collection. |
List<InstallerListener> |
getInstallerListeners()
Returns the installer listeners. |
void |
initialise()
Initialises the listeners. |
boolean |
isFileListener()
Determines if the listener should be notified of every file and directory installation. |
int |
size()
Returns the number of registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstallerListeners(AutomatedInstallData installData,
Prompt prompt)
InstallerListeners.
installData - the installation dataprompt - the prompt| Method Detail |
|---|
public void add(InstallerListener listener)
listener - the listener to addpublic int size()
public InstallerListener get(int index)
index - the index into the collection
public List<InstallerListener> getInstallerListeners()
public void initialise()
IzPackException - if a listener throws an exception
public void beforePacks(List<Pack> packs,
ProgressListener listener)
throws InstallerException
packs - the packs to installlistener - the progress listener
InstallerException - if a listener throws an exception
public void beforePack(Pack pack,
int i)
throws InstallerException
pack - the packi - the pack number
InstallerException - if a listener throws an exceptionpublic boolean isFileListener()
public void beforeDir(File dir,
PackFile packFile,
Pack pack)
throws InstallerException
dir - the directorypackFile - corresponding pack filepack - the pack that packFile comes from
InstallerException - if a listener throws an exception
public void afterDir(File dir,
PackFile packFile,
Pack pack)
throws InstallerException
dir - the directorypackFile - corresponding pack filepack - the pack that packFile comes from
InstallerException - if a listener throws an exception
public void beforeFile(File file,
PackFile packFile,
Pack pack)
throws InstallerException
isFileListener() returns true.
file - the filepackFile - corresponding pack filepack - the pack that packFile comes from
InstallerException - if a listener throws an exception
public void afterFile(File file,
PackFile packFile,
Pack pack)
throws InstallerException
isFileListener() returns true.
file - the filepackFile - corresponding pack filepack - the pack that packFile comes from
InstallerException - if a listener throws an exception
public void afterPack(Pack pack)
throws InstallerException
pack - current pack object
InstallerException - if a listener throws an exception
public void afterPacks(List<Pack> packs,
ProgressListener listener)
throws InstallerException
packs - the installed packslistener - the progress listener
InstallerException - if a listener throws an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||