public class JLineShellComponent extends JLineShell implements SmartLifecycle, ApplicationContextAware, InitializingBean
JLineShell
.reader, statusListener
completionKeys, exceptionLogger, exitShellRequest, inBlockComment, logger, ROO_PROMPT, shellPrompt
shellStatus, shellStatusListeners
WINDOW_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, setPromptPath
blockCommentBegin, blockCommentFinish, executeCommand, executeScriptLine, getExitShellRequest, getHome, getShellPrompt, handleExecutionResult, logCommandIfRequired, versionInfo
addShellStatusListener, getShellStatus, removeShellStatusListener, setShellStatus, setShellStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeCommand, getExitShellRequest, getHome
addShellStatusListener, getShellStatus, removeShellStatusListener
getShellPrompt
public SimpleParser getSimpleParser()
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public void waitForComplete()
protected ExecutionStrategy getExecutionStrategy()
getExecutionStrategy
in class AbstractShell
protected Parser getParser()
getParser
in class AbstractShell
public String getStartupNotifications()
getStartupNotifications
in class JLineShell
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void customizePlugin()
protected String getHistoryFileName()
getHistoryFileName
in class JLineShell
protected String getPromptText()
getPromptText
in class JLineShell
public void printBannerAndWelcome()
printBannerAndWelcome
in class JLineShell
public String getWelcomeMessage()
public void setPrintBanner(boolean printBanner)
printBanner
- the printBanner to setprotected String getProductName()
JLineShell
getProductName
in class JLineShell
protected String getVersion()
JLineShell
getVersion
in class JLineShell