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 voidabout(boolean showBanner, boolean showHeader)This will show the boot up logos, header (additional info) etc.voidget(InputLine inputLine)StringgetName()StringgetPrompt()The prompt displayed to the user.voidinitialize()Finish initializing this implementation.voidload(InputLine inputLine)Load resources before showing logos etc.voidset(InputLine inputLine)voidshow_all(InputLine inputLine)-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
getIOInterface, getPlaceHolder, getValue, isEmpty, isThrowExceptions, isVerbose, print_help, say2, sayii, set_output_on, set_verbose_on, setOutputOnHelp, setPlaceHolder, setThrowExceptions, setVerboseHelp, version, versionHelp
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
bootstrap, bootstrap, clear_env, clearEnvHelp, configureCommands, 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:AbstractCommandsImplThis will show the boot up logos, header (additional info) etc. if any- Specified by:
aboutin classAbstractCommandsImpl
-
initialize
public void initialize() throws ThrowableDescription copied from class:AbstractCommandsImplFinish initializing this implementation.- Specified by:
initializein classAbstractCommandsImpl- Throws:
Throwable
-
load
public void load(InputLine inputLine) throws Throwable
Description copied from class:AbstractCommandsImplLoad 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:
loadin classAbstractCommandsImpl- Throws:
Throwable
-
getPrompt
public String getPrompt()
Description copied from interface:CommandsThe prompt displayed to the user. This allows it to change based on context.- Returns:
- java.lang.String
-
getName
public String getName()
-
-