|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.Kickstart4J
public final class Kickstart4J
Main application.
| Constructor Summary | |
|---|---|
Kickstart4J(Config config)
Constructor with configuration. |
|
| Method Summary | |
|---|---|
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(..) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Kickstart4J(Config config)
config - Configuration to use.| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||