@Configuration public class JLineShellAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JLineShellAutoConfiguration.CompleterAdapter
A bridge between JLine's
Completer contract and our own. |
static class |
JLineShellAutoConfiguration.HistoryConfiguration
Installs a default JLine history, and triggers saving to file on context shutdown.
|
Constructor and Description |
---|
JLineShellAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
JLineShellAutoConfiguration.CompleterAdapter |
completer() |
org.springframework.boot.ApplicationRunner |
interactiveApplicationRunner(org.jline.reader.Parser parser,
org.springframework.core.env.Environment environment) |
void |
lateInit() |
org.jline.reader.LineReader |
lineReader() |
org.jline.reader.Parser |
parser() |
PromptProvider |
promptProvider() |
org.springframework.boot.ApplicationRunner |
scriptApplicationRunner(org.jline.reader.Parser parser,
org.springframework.core.env.ConfigurableEnvironment environment) |
org.jline.terminal.Terminal |
terminal() |
@Bean(destroyMethod="close") public org.jline.terminal.Terminal terminal()
@Bean @ConditionalOnProperty(prefix="spring.shell.interactive", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.boot.ApplicationRunner interactiveApplicationRunner(org.jline.reader.Parser parser, org.springframework.core.env.Environment environment)
@Bean @ConditionalOnProperty(prefix="spring.shell.script", value="spring.shell.script", havingValue="true", matchIfMissing=true) public org.springframework.boot.ApplicationRunner scriptApplicationRunner(org.jline.reader.Parser parser, org.springframework.core.env.ConfigurableEnvironment environment)
@Bean @ConditionalOnMissingBean(value=PromptProvider.class) public PromptProvider promptProvider()
@Bean public JLineShellAutoConfiguration.CompleterAdapter completer()
@PostConstruct public void lateInit()
@Bean public org.jline.reader.Parser parser()
@Bean public org.jline.reader.LineReader lineReader()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.