クラス 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
  • コンストラクターの詳細

  • メソッドの詳細

    • onContextClosedEvent

      @EventListener public void onContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) throws IOExceptionSE
      例外:
      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

      @Bean @ConditionalOnMissingBean(PromptProvider.class) public PromptProvider 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)