@Order(value=0) public class InteractiveShellApplicationRunner extends Object implements org.springframework.boot.ApplicationRunner
Runs the REPL of the shell unless the spring.shell.interactive property has been set to false.
Modifier and Type | Class and Description |
---|---|
static class |
InteractiveShellApplicationRunner.JLineInputProvider |
Modifier and Type | Field and Description |
---|---|
static String |
ENABLED |
static int |
PRECEDENCE
The precedence at which this runner is set.
|
static String |
SPRING_SHELL_INTERACTIVE |
static String |
SPRING_SHELL_INTERACTIVE_ENABLED
The name of the property that controls whether this runner effectively does something.
|
Constructor and Description |
---|
InteractiveShellApplicationRunner(org.jline.reader.LineReader lineReader,
PromptProvider promptProvider,
org.jline.reader.Parser parser,
Shell shell,
org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
static void |
disable(org.springframework.core.env.ConfigurableEnvironment environment)
Helper method to dynamically disable this runner.
|
boolean |
isEnabled() |
void |
run(org.springframework.boot.ApplicationArguments args) |
public static final int PRECEDENCE
SPRING_SHELL_INTERACTIVE_ENABLED
property to false.public static final String SPRING_SHELL_INTERACTIVE
public static final String ENABLED
public static final String SPRING_SHELL_INTERACTIVE_ENABLED
public InteractiveShellApplicationRunner(org.jline.reader.LineReader lineReader, PromptProvider promptProvider, org.jline.reader.Parser parser, Shell shell, org.springframework.core.env.Environment environment)
public void run(org.springframework.boot.ApplicationArguments args) throws Exception
run
in interface org.springframework.boot.ApplicationRunner
Exception
public boolean isEnabled()
public static void disable(org.springframework.core.env.ConfigurableEnvironment environment)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.