Package org.springframework.shell.core
Class SystemShellRunner
java.lang.Object
org.springframework.shell.core.InteractiveShellRunner
org.springframework.shell.core.SystemShellRunner
- All Implemented Interfaces:
ShellRunner
Interactive shell runner based on the JVM's system
Console.- Since:
- 4.0.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionSystemShellRunner(ConsoleInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry) Create a newSystemShellRunnerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flush the output.Get the writer to the output.voidPrint a message to the output.Methods inherited from class org.springframework.shell.core.InteractiveShellRunner
run
-
Constructor Details
-
SystemShellRunner
public SystemShellRunner(ConsoleInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry) Create a newSystemShellRunnerinstance.- Parameters:
inputProvider- the console input providercommandParser- the command parsercommandRegistry- the command registry
-
-
Method Details
-
print
Description copied from class:InteractiveShellRunnerPrint a message to the output.- Specified by:
printin classInteractiveShellRunner- Parameters:
message- the message to print
-
flush
public void flush()Description copied from class:InteractiveShellRunnerFlush the output.- Specified by:
flushin classInteractiveShellRunner
-
getWriter
Description copied from class:InteractiveShellRunnerGet the writer to the output.- Specified by:
getWriterin classInteractiveShellRunner- Returns:
- the print writer
-