From 8fcc203fe6d509a5241e6c5fe55845c5f284a6eb Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Mon, 18 Sep 2017 18:23:10 +0200 Subject: [PATCH] Expose default runner precedence --- .../shell/jline/DefaultShellApplicationRunner.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java b/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java index 0db9dbda..a48ba49c 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java @@ -29,6 +29,7 @@ import org.jline.utils.AttributedString; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; +import org.springframework.core.annotation.Order; import org.springframework.shell.ExitRequest; import org.springframework.shell.Input; import org.springframework.shell.InputProvider; @@ -45,8 +46,11 @@ import org.springframework.shell.Shell; * * @author Eric Bottard */ +@Order(DefaultShellApplicationRunner.PRECEDENCE) public class DefaultShellApplicationRunner implements ApplicationRunner { + public static final int PRECEDENCE = 0; + private final LineReader lineReader; private final PromptProvider promptProvider;