Class AbstractApplication
java.lang.Object
org.apache.jackrabbit.vault.util.console.AbstractApplication
- Direct Known Subclasses:
HelloWorldApp,ShellApp,VaultFsApp
Console...-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli2.builder.GroupBuilderaddApplicationOptions(org.apache.commons.cli2.builder.GroupBuilder gbuilder) protected voidclose()voidexecute(org.apache.commons.cli2.CommandLine cl) protected org.apache.commons.cli2.util.HelpFormatterorg.apache.commons.cli2.Groupabstract StringReturns the name of this applicationabstract Consoleprotected abstract ExecutionContextgetEnv()getProperty(String key) abstract StringReturns the name of the shell commandprotected voidinit()voidloadConfig(String path) voidprepare(org.apache.commons.cli2.CommandLine cl) voidvoidprotected voidvoidsaveConfig(String path) voidsetLogLevel(String level) voidsetProperty(String key, String value)
-
Field Details
-
DEFAULT_CONF_FILENAME
- See Also:
-
KEY_PROMPT
- See Also:
-
KEY_USER
- See Also:
-
KEY_PATH
- See Also:
-
KEY_HOST
- See Also:
-
KEY_LOGLEVEL
- See Also:
-
-
Constructor Details
-
AbstractApplication
public AbstractApplication()
-
-
Method Details
-
getVersion
-
getPomProperties
-
getCopyrightLine
-
getVersionString
-
printVersion
public void printVersion() -
getApplicationName
Returns the name of this application- Returns:
- the name of this application
-
getShellCommand
Returns the name of the shell command- Returns:
- the name of the shell command
-
printHelp
-
getAppHelpFormatter
protected org.apache.commons.cli2.util.HelpFormatter getAppHelpFormatter() -
getApplicationCLGroup
public org.apache.commons.cli2.Group getApplicationCLGroup() -
addApplicationOptions
public org.apache.commons.cli2.builder.GroupBuilder addApplicationOptions(org.apache.commons.cli2.builder.GroupBuilder gbuilder) -
init
protected void init() -
run
-
setLogLevel
-
prepare
- Throws:
ExecutionException
-
execute
- Throws:
ExecutionException
-
saveConfig
- Throws:
IOException
-
loadConfig
- Throws:
IOException
-
close
protected void close() -
getEnv
-
setProperty
-
getProperty
-
getDefaultContext
-
getConsole
-