public abstract class Launcher extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
args
Arguments with which this launcher was invoked.
|
protected TempLogFile |
tempLogFile
The temporary log file which will be kept if an error occurs.
|
Constructor and Description |
---|
Launcher(String[] args,
String tempLogFilePrefix)
Creates a Launcher.
|
Modifier and Type | Method and Description |
---|---|
protected abstract CliApplication |
createCliApplication()
Creates a CLI application that will be run if the
launcher needs to launch a CLI application.
|
abstract com.forgerock.opendj.cli.ArgumentParser |
getArgumentParser()
Gets an argument parser appropriate for this CLI launcher.
|
String[] |
getArguments()
Gets the arguments with which this launcher was invoked.
|
protected abstract LocalizableMessage |
getFrameTitle()
Gets the frame title of the GUI application that will be used
in some operating systems.
|
protected abstract void |
guiLaunchFailed()
Called if launching of the GUI failed.
|
protected boolean |
isCli()
Indicates whether the launcher will launch a command line versus
a graphical application based on the contents of the arguments
passed into the constructor.
|
protected boolean |
isQuiet()
Indicates whether the launcher should print a usage statement
based on the content of the arguments passed into the constructor.
|
void |
launch()
The main method which is called by the command lines.
|
protected int |
launchGui(String[] args)
Launches the graphical uninstall.
|
protected boolean |
shouldPrintUsage()
Indicates whether the launcher should print a usage statement
based on the content of the arguments passed into the constructor.
|
protected boolean |
shouldPrintVersion()
Indicates whether the launcher should print a version statement
based on the content of the arguments passed into the constructor.
|
protected abstract void |
willLaunchGui()
Called before the launcher launches the GUI.
|
protected final TempLogFile tempLogFile
public String[] getArguments()
public abstract com.forgerock.opendj.cli.ArgumentParser getArgumentParser()
protected boolean shouldPrintUsage()
protected boolean isQuiet()
protected boolean shouldPrintVersion()
protected boolean isCli()
protected int launchGui(String[] args)
args
- String[] the arguments used to call the SplashWindow main
methodprotected abstract LocalizableMessage getFrameTitle()
protected abstract CliApplication createCliApplication()
protected abstract void willLaunchGui()
protected abstract void guiLaunchFailed()
public void launch()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.