public class JLineShellComponent extends JLineShell implements SmartLifecycle, ApplicationContextAware, InitializingBean
JLineShell.reader, statusListenercompletionKeys, exitShellRequest, inBlockComment, logger, ROO_PROMPT, shellPromptshellStatus, shellStatusListenersWINDOW_TITLE_SLOT| Constructor and Description |
|---|
JLineShellComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
customizePlugin() |
protected ExecutionStrategy |
getExecutionStrategy() |
protected String |
getHistoryFileName()
get history file name from provider.
|
protected Parser |
getParser() |
int |
getPhase() |
protected String |
getProductName()
get product name
|
protected String |
getPromptText()
get prompt text from provider.
|
SimpleParser |
getSimpleParser() |
String |
getStartupNotifications() |
protected String |
getVersion()
get version information
|
String |
getWelcomeMessage()
get the welcome message at start.
|
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
printBannerAndWelcome() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setPrintBanner(boolean printBanner) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
void |
waitForComplete()
wait the shell command to complete by typing "quit" or "exit"
|
closeShell, createAnsiWindowsReader, createConsoleReader, flash, generatePromptUpdate, getHistorySize, getHomeAsString, isDevelopmentMode, logCommandToOutput, promptLoop, run, setDevelopmentMode, setHistorySize, setPromptPath, setPromptPathblockCommentBegin, blockCommentFinish, executeCommand, executeScriptLine, getExitShellRequest, getHome, getShellPrompt, handleExecutionResult, logCommandIfRequired, versionInfoaddShellStatusListener, getShellStatus, removeShellStatusListener, setShellStatus, setShellStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteCommand, getExitShellRequest, getHomeaddShellStatusListener, getShellStatus, removeShellStatusListenergetShellPromptpublic SimpleParser getSimpleParser()
public boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void waitForComplete()
protected ExecutionStrategy getExecutionStrategy()
getExecutionStrategy in class AbstractShellprotected Parser getParser()
getParser in class AbstractShellpublic String getStartupNotifications()
getStartupNotifications in class JLineShellpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void customizePlugin()
protected String getHistoryFileName()
getHistoryFileName in class JLineShellprotected String getPromptText()
getPromptText in class JLineShellpublic void printBannerAndWelcome()
printBannerAndWelcome in class JLineShellpublic String getWelcomeMessage()
public void setPrintBanner(boolean printBanner)
printBanner - the printBanner to setprotected String getProductName()
JLineShellgetProductName in class JLineShellprotected String getVersion()
JLineShellgetVersion in class JLineShell