Package org.springframework.shell.jline
Class JLineShellRunner
java.lang.Object
org.springframework.shell.core.InteractiveShellRunner
org.springframework.shell.jline.JLineShellRunner
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.shell.core.ShellRunner
public class JLineShellRunner
extends org.springframework.shell.core.InteractiveShellRunner
Interactive shell runner based on the JVM's system
Console.- Since:
- 4.0.0
- Author:
- Mahmoud Ben Hassine, David Pilar
-
Constructor Summary
ConstructorsConstructorDescriptionJLineShellRunner(JLineInputProvider inputProvider, org.springframework.shell.core.command.CommandParser commandParser, org.springframework.shell.core.command.CommandRegistry commandRegistry) Create a newJLineShellRunnerinstance. -
Method Summary
Methods inherited from class org.springframework.shell.core.InteractiveShellRunner
destroy, run, setDebugMode, stop
-
Constructor Details
-
JLineShellRunner
public JLineShellRunner(JLineInputProvider inputProvider, org.springframework.shell.core.command.CommandParser commandParser, org.springframework.shell.core.command.CommandRegistry commandRegistry) Create a newJLineShellRunnerinstance.- Parameters:
inputProvider- the JLine input providercommandParser- the command parsercommandRegistry- the command registry
-
-
Method Details
-
print
- Specified by:
printin classorg.springframework.shell.core.InteractiveShellRunner
-
flush
public void flush()- Specified by:
flushin classorg.springframework.shell.core.InteractiveShellRunner
-
getWriter
- Specified by:
getWriterin classorg.springframework.shell.core.InteractiveShellRunner
-
getReader
public org.springframework.shell.core.InputReader getReader()- Specified by:
getReaderin classorg.springframework.shell.core.InteractiveShellRunner
-
wakeup
protected void wakeup()RaiseINTon the terminal so the blockedLineReader.readLine()throws.- Overrides:
wakeupin classorg.springframework.shell.core.InteractiveShellRunner
-