Package edu.uiuc.ncsa.security.util.cli
Class TestCCI.CCIComponent
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands2
-
- edu.uiuc.ncsa.security.util.cli.TestCCI.CCIComponent
-
- All Implemented Interfaces:
Logable
,Commands
,Serializable
- Enclosing class:
- TestCCI
public class TestCCI.CCIComponent extends CommonCommands2
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
placeHolder
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
CL_INPUT_FILE_FLAG, CL_OUTPUT_FILE_FLAG, DEFAULT_NULL_VALUE_PLACEHOLDER, defaultIndent, INDENT, LOGO, logoName, NO_HEADER, NO_LOGO, showHeader, showLogo, SILENT
-
-
Constructor Summary
Constructors Constructor Description CCIComponent(CLIDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
about(boolean showBanner, boolean showHeader)
This will show the boot up logos, header (additional info) etc.void
get(InputLine inputLine)
String
getName()
String
getPrompt()
The prompt displayed to the user.void
initialize()
Finish initializing this implementation.void
load(InputLine inputLine)
Load resources before showing logos etc.void
set(InputLine inputLine)
void
show_all(InputLine inputLine)
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
getIOInterface, getPlaceHolder, getValue, isEmpty, isVerbose, print_help, say2, sayii, set_output_on, set_verbose_on, setOutputOnHelp, setPlaceHolder, setVerboseHelp, version, versionHelp
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
bootstrap, bootstrap, clear_env, clearEnvHelp, debug, error, error, get_env, getDriver, getHelpUtil, getInput, getLogoName, getPropertyHelp, gracefulExit, hasLogger, indentWidth, info, initHelp, isDebugOn, isOk, isShowHeader, isShowLogo, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readJSON, readline, readline, save_env, say, say, sayi, sayv, set_env, setDebugOn, setDriver, setLogoName, setShowHeader, setShowLogo, showHelp, warn
-
-
-
-
Constructor Detail
-
CCIComponent
public CCIComponent(CLIDriver driver)
-
-
Method Detail
-
about
public void about(boolean showBanner, boolean showHeader)
Description copied from class:AbstractCommandsImpl
This will show the boot up logos, header (additional info) etc. if any- Specified by:
about
in classAbstractCommandsImpl
-
initialize
public void initialize() throws Throwable
Description copied from class:AbstractCommandsImpl
Finish initializing this implementation.- Specified by:
initialize
in classAbstractCommandsImpl
- Throws:
Throwable
-
load
public void load(InputLine inputLine) throws Throwable
Description copied from class:AbstractCommandsImpl
Load resources before showing logos etc. This is typically called on your behalf inAbstractCommandsImpl.bootstrap(InputLine)
amd should load resources needed. Note that an exception in this does not stop booting. This allows you to start a system with a missing configuration file (for instnace) and prompt for it.
SeeAbstractCommandsImpl.initialize()
which is called after this and is charged with actually starting- Specified by:
load
in classAbstractCommandsImpl
- Throws:
Throwable
-
getPrompt
public String getPrompt()
Description copied from interface:Commands
The prompt displayed to the user. This allows it to change based on context.- Returns:
- java.lang.String
-
getName
public String getName()
-
-