Package org.springframework.shell.boot
Class JLineShellAutoConfiguration
java.lang.Object
org.springframework.shell.boot.JLineShellAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(SpringShellProperties.class)
public class JLineShellAutoConfiguration
extends Object
Shell implementation using JLine to capture input and trigger completions.
- Author:
- Eric Bottard, Florent Biville, Mahmoud Ben Hassine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionJLineShellAutoConfiguration(org.jline.reader.History jLineHistory, SpringShellProperties springShellProperties, UserConfigPathProvider userConfigPathProvider) -
Method Summary
Modifier and TypeMethodDescriptioninputProvider(org.jline.reader.LineReader lineReader) org.jline.reader.LineReaderlineReader(org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, CommandRegistry commandRegistry) voidonContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) org.jline.reader.Parserparser()org.jline.terminal.Terminalterminal(org.springframework.beans.factory.ObjectProvider<TerminalCustomizer> customizers)
-
Constructor Details
-
JLineShellAutoConfiguration
public JLineShellAutoConfiguration(org.jline.reader.History jLineHistory, SpringShellProperties springShellProperties, UserConfigPathProvider userConfigPathProvider)
-
-
Method Details
-
onContextClosedEvent
@EventListener public void onContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) throws IOException - Throws:
IOException
-
lineReader
@Bean public org.jline.reader.LineReader lineReader(org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, CommandRegistry commandRegistry) -
inputProvider
-
terminal
@Bean(destroyMethod="close") public org.jline.terminal.Terminal terminal(org.springframework.beans.factory.ObjectProvider<TerminalCustomizer> customizers) -
promptProvider
-
parser
@Bean public org.jline.reader.Parser parser()
-