public final class Kickstart4J extends Object
| Constructor and Description |
|---|
Kickstart4J(Config config)
Constructor with configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
displayCmdLineExceptionAndExit(CmdLineParser parser,
CmdLineException ex,
int exitCode)
Shows an error message and exits the program with
System.exit(..) |
static void |
displayExceptionAndExit(Exception ex,
int exitCode)
Shows an error message and exits the program with
System.exit(..) |
void |
execute()
Executes the installer/updater.
|
Kickstart4JListener |
getListener()
Returns the life cycle listener.
|
static void |
main(String[] args)
Main method used to start the installer/updater.
|
void |
setListener(Kickstart4JListener listener)
Sets the life cycle listener.
|
static void |
showMessageAndExit(String message,
int exitCode)
Shows a message and exits the program with
System.exit(..) |
public Kickstart4J(Config config)
config - Configuration to use.public final Kickstart4JListener getListener()
null.public final void setListener(Kickstart4JListener listener)
listener - Listener - Will be set to a default listener if
null.public final void execute()
throws org.fuin.utils4swing.dialogs.CanceledException,
InvalidConfigException
org.fuin.utils4swing.dialogs.CanceledException - The user canceled the installation.InvalidConfigException - The configuration is invalid.public static void showMessageAndExit(String message, int exitCode)
System.exit(..).message - Message to display.exitCode - System exit code.public static void displayCmdLineExceptionAndExit(CmdLineParser parser, CmdLineException ex, int exitCode)
System.exit(..).parser - Parser for usage display.ex - Exception to display.exitCode - System exit code.public static void displayExceptionAndExit(Exception ex, int exitCode)
System.exit(..).ex - Exception to display.exitCode - System exit code.public static void main(String[] args)
new Kickstart4J(kickstart4JConfig).execute() instead of
calling this method.args - Command line arguments.Copyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.