public abstract class Launcher extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected String[] | 
args
Arguments with which this launcher was invoked. 
 | 
| Constructor and Description | 
|---|
Launcher(String[] args)
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(String logFileName)
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 or not 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 | 
launchCli(CliApplication cliApp)
Launches the command line based uninstall. 
 | 
protected int | 
launchGui(String[] args)
Launches the graphical uninstall. 
 | 
protected void | 
printUsage(boolean toStdErr)
Prints a usage statement to terminal and exits with an error
 code. 
 | 
protected void | 
printUsage(String i18nMsg,
                    boolean toStdErr)
Prints a usage message to the terminal. 
 | 
protected void | 
printVersion()
Prints the version statement to standard output terminal. 
 | 
protected boolean | 
shouldPrintUsage()
Indicates whether or not the launcher should print a usage
 statement based on the content of the arguments passed into
 the constructor. 
 | 
protected boolean | 
shouldPrintVersion()
Indicates whether or not 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. 
 | 
public String[] getArguments()
public abstract com.forgerock.opendj.cli.ArgumentParser getArgumentParser()
protected boolean shouldPrintUsage()
protected boolean isQuiet()
protected boolean shouldPrintVersion()
protected boolean isCli()
protected void printUsage(String i18nMsg, boolean toStdErr)
i18nMsg - localized user message that will be printed to the terminal.toStdErr - whether the message must be printed to the standard error
 or the standard output.protected int launchGui(String[] args)
args - String[] the arguments used to call the SplashWindow main
         methodprotected abstract LocalizableMessage getFrameTitle()
protected int launchCli(CliApplication cliApp)
cliApp - the CLI application to launchprotected void printVersion()
protected void printUsage(boolean toStdErr)
toStdErr - whether the message must be printed to the standard error
 or the standard output.protected abstract CliApplication createCliApplication()
protected abstract void willLaunchGui()
protected abstract void guiLaunchFailed(String logFileName)
logFileName - the log file containing more information about why
 the launch failed.public void launch()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.