public class SetupLauncher extends Launcher
args, tempLogFile
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()
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, launchGui, 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()
Launcher
public com.forgerock.opendj.cli.ArgumentParser getArgumentParser()
Launcher
getArgumentParser
in class Launcher
protected void guiLaunchFailed()
Launcher
guiLaunchFailed
in class Launcher
protected void willLaunchGui()
Launcher
willLaunchGui
in class Launcher
protected LocalizableMessage getFrameTitle()
Launcher
getFrameTitle
in class Launcher
protected CliApplication createCliApplication()
Launcher
createCliApplication
in class Launcher
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.