public class JLineShellComponent extends JLineShell implements org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
JLineShell
.reader, statusListener
completionKeys, 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 java.lang.String |
getHistoryFileName()
get history file name from provider.
|
protected Parser |
getParser() |
int |
getPhase() |
protected java.lang.String |
getProductName()
get product name
|
protected java.lang.String |
getPromptText()
get prompt text from provider.
|
SimpleParser |
getSimpleParser() |
java.lang.String |
getStartupNotifications() |
protected java.lang.String |
getVersion()
get version information
|
java.lang.String |
getWelcomeMessage()
get the welcome message at start.
|
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
printBannerAndWelcome() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setPrintBanner(boolean printBanner) |
void |
start() |
void |
stop() |
void |
stop(java.lang.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 org.springframework.context.SmartLifecycle
public void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void waitForComplete()
protected ExecutionStrategy getExecutionStrategy()
getExecutionStrategy
in class AbstractShell
protected Parser getParser()
getParser
in class AbstractShell
public java.lang.String getStartupNotifications()
getStartupNotifications
in class JLineShell
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void customizePlugin()
protected java.lang.String getHistoryFileName()
getHistoryFileName
in class JLineShell
protected java.lang.String getPromptText()
getPromptText
in class JLineShell
public void printBannerAndWelcome()
printBannerAndWelcome
in class JLineShell
public java.lang.String getWelcomeMessage()
public void setPrintBanner(boolean printBanner)
printBanner
- the printBanner to setprotected java.lang.String getProductName()
JLineShell
getProductName
in class JLineShell
protected java.lang.String getVersion()
JLineShell
getVersion
in class JLineShell