@Order(value=0) public class InteractiveShellRunner extends Object implements ShellRunner
ShellRunner
that bootstraps the shell in interactive mode.
Has lower precedence than ScriptShellRunner
and NonInteractiveShellRunner
which makes it the
default shell runner when the other runners opt-out of handling the shell.
Modifier and Type | Class and Description |
---|---|
static class |
InteractiveShellRunner.JLineInputProvider |
Modifier and Type | Field and Description |
---|---|
static int |
PRECEDENCE
The precedence at which this runner is ordered by the DefaultApplicationRunner - which also controls
the order it is consulted on the ability to handle the current shell.
|
Constructor and Description |
---|
InteractiveShellRunner(org.jline.reader.LineReader lineReader,
PromptProvider promptProvider,
Shell shell,
ShellContext shellContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(org.springframework.boot.ApplicationArguments args)
Checks if a particular shell runner can execute.
|
void |
run(org.springframework.boot.ApplicationArguments args)
Execute application.
|
public static final int PRECEDENCE
public InteractiveShellRunner(org.jline.reader.LineReader lineReader, PromptProvider promptProvider, Shell shell, ShellContext shellContext)
public void run(org.springframework.boot.ApplicationArguments args) throws Exception
ShellRunner
run
in interface ShellRunner
args
- the application argumetsException
- in errorspublic boolean canRun(org.springframework.boot.ApplicationArguments args)
ShellRunner
canRun
in interface ShellRunner
args
- the application argumentsCopyright © 2024. All rights reserved.