クラス JLineShellAutoConfiguration
java.lang.ObjectSE
org.springframework.shell.core.autoconfigure.JLineShellAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(SpringShellProperties.class)
@ConditionalOnClass(org.jline.reader.History.class)
@ImportAutoConfiguration(classes={ThemingAutoConfiguration.class,TerminalUIAutoConfiguration.class,ComponentFlowAutoConfiguration.class})
public class JLineShellAutoConfiguration
extends ObjectSE
JLine を使用して入力をキャプチャーし、補完をトリガーするシェル実装。
- 作成者:
- Eric Bottard, Florent Biville, Mahmoud Ben Hassine, Piotr Olaszewski, David Pilar
ネストされたクラスの概要
ネストされたクラスコンストラクター概要
コンストラクターコンストラクター説明JLineShellAutoConfiguration(org.jline.reader.History jLineHistory, SpringShellProperties springShellProperties, UserConfigPathProvider userConfigPathProvider) 方法の概要
修飾子と型メソッド説明commandCompleter(CommandRegistry commandRegistry) commandHighlighter(CommandRegistry commandRegistry) historyCommand(org.jline.reader.History jLineHistory) inputProvider(org.jline.reader.LineReader lineReader, PromptProvider promptProvider) jlineNonInteractiveShellRunner(CommandParser commandParser, CommandRegistry commandRegistry, org.jline.terminal.Terminal terminal) jlineShellRunner(JLineInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry, org.springframework.core.env.Environment environment) org.jline.reader.LineReaderlineReader(org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, CommandCompleter commandCompleter, CommandHighlighter commandHighlighter) voidonContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) org.jline.reader.Parserparser()org.jline.terminal.Terminalterminal(org.springframework.beans.factory.ObjectProvider<TerminalCustomizer> customizers)
コンストラクターの詳細
JLineShellAutoConfiguration
public JLineShellAutoConfiguration(org.jline.reader.History jLineHistory, SpringShellProperties springShellProperties, UserConfigPathProvider userConfigPathProvider)
メソッドの詳細
onContextClosedEvent
@EventListener public void onContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) throws IOExceptionSE jlineShellRunner
@Bean @ConditionalOnProperty(prefix="spring.shell.interactive", name="enabled", havingValue="true", matchIfMissing=true) public ShellRunner jlineShellRunner(JLineInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry, org.springframework.core.env.Environment environment) jlineNonInteractiveShellRunner
@Bean @ConditionalOnProperty(prefix="spring.shell.interactive", name="enabled", havingValue="false") public ShellRunner jlineNonInteractiveShellRunner(CommandParser commandParser, CommandRegistry commandRegistry, org.jline.terminal.Terminal terminal) lineReader
@Bean public org.jline.reader.LineReader lineReader(org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, CommandCompleter commandCompleter, CommandHighlighter commandHighlighter) inputProvider
@Bean public JLineInputProvider inputProvider(org.jline.reader.LineReader lineReader, PromptProvider promptProvider) 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()commandHighlighter
@Bean @ConditionalOnMissingBean public CommandHighlighter commandHighlighter(CommandRegistry commandRegistry) commandCompleter
@Bean @ConditionalOnMissingBean public CommandCompleter commandCompleter(CommandRegistry commandRegistry) historyCommand
@Bean @ConditionalOnProperty(value="spring.shell.command.history.enabled", havingValue="true", matchIfMissing=true) public Command historyCommand(org.jline.reader.History jLineHistory)