public class ServerCLP extends ApplicationCommandLineParser
ServerConfig
instance as result.Modifier and Type | Field and Description |
---|---|
protected AbstractBooleanOption |
optShutdown |
protected OptionServerWorkspaceDir |
optWorkspaceDir |
optApplicationName, optPrintVersion
optDebug, optDemo, optHelp, optLocale, optLogDir, optNoConsole, optTest, optVerbose
Constructor and Description |
---|
ServerCLP(java.lang.Class mainClass,
java.lang.String... args) |
Modifier and Type | Method and Description |
---|---|
protected ServerConfig |
createConfig()
May be overridden to return a specific
ApplicationConfig derivation which contains
all data extracted from the command line. |
java.io.File |
getWorkspaceDir() |
boolean |
isShutdown() |
void |
setWorkspaceEnvVariableName(java.lang.String envVarName)
Defines the env-variable which is used to configure the workspace directory
|
getApplicationName, getConfig, isPrintVersionOnly, setDefaultApplicationName
addOption, addOptionBoolean, addOptionOutFile, checkDependencies, createHelpText, createHelpText, createOptionList, createSyntaxLine, ensureParsed, fetchDefinedOptionFor, findDefinedOptionFor, getArgument, getArgumentCount, getArguments, getLogDir, getMainClass, getStartLogLevel, hasArguments, isDebug, isDemoMode, isExitOnError, isParsed, isSuppressConsoleLogging, isTestMode, isVerbose, parse, removeOption, removeOption, setExitOnError
protected final OptionServerWorkspaceDir optWorkspaceDir
protected final AbstractBooleanOption optShutdown
public void setWorkspaceEnvVariableName(java.lang.String envVarName)
protected ServerConfig createConfig() throws java.lang.Exception
ApplicationCommandLineParser
ApplicationConfig
derivation which contains
all data extracted from the command line.createConfig
in class ApplicationCommandLineParser
java.lang.Exception
public java.io.File getWorkspaceDir()
public boolean isShutdown()
Copyright © 2012 EsprIT-Systems. All Rights Reserved.