public class SetupLauncher extends Launcher
Constructor and Description |
---|
SetupLauncher(String[] args)
Creates a launcher.
|
Modifier and Type | Method and Description |
---|---|
protected CliApplication |
createCliApplication()
Creates a CLI application that will be run if the
launcher needs to launch a CLI application.
|
com.forgerock.opendj.cli.ArgumentParser |
getArgumentParser()
Gets an argument parser appropriate for this CLI launcher.
|
protected LocalizableMessage |
getFrameTitle()
Gets the frame title of the GUI application that will be used
in some operating systems.
|
protected void |
guiLaunchFailed(String logFileName)
Called if launching of the GUI failed.
|
protected void |
initializeParser()
Initialize the contents of the argument parser.
|
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.
|
void |
launch()
The main method which is called by the command lines.
|
static void |
main(String[] args)
The main method which is called by the setup command lines.
|
protected void |
willLaunchGui()
Called before the launcher launches the GUI.
|
getArguments, isQuiet, launchCli, launchGui, printUsage, printUsage, printVersion, shouldPrintUsage, shouldPrintVersion
public SetupLauncher(String[] args)
args
- the arguments passed by the command lines.public static void main(String[] args)
args
- the arguments passed by the command lines. In the case
we want to launch the cli setup they are basically the arguments that we
will pass to the org.opends.server.tools.InstallDS class.protected void initializeParser()
public void launch()
public com.forgerock.opendj.cli.ArgumentParser getArgumentParser()
getArgumentParser
in class Launcher
protected void guiLaunchFailed(String logFileName)
guiLaunchFailed
in class Launcher
logFileName
- the log file containing more information about why
the launch failed.protected void willLaunchGui()
willLaunchGui
in class Launcher
protected LocalizableMessage getFrameTitle()
getFrameTitle
in class Launcher
protected CliApplication createCliApplication()
createCliApplication
in class Launcher
protected boolean isCli()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.