Class InitializeConnectionApplicationRunner

java.lang.Object
org.springframework.cloud.dataflow.shell.config.InitializeConnectionApplicationRunner
All Implemented Interfaces:
org.springframework.boot.ApplicationRunner

@Order(-10) public class InitializeConnectionApplicationRunner extends Object implements org.springframework.boot.ApplicationRunner
An ApplicationRunner implementation that initialises the connection to the Data Flow Server.

Has higher precedence than DefaultShellApplicationRunner so that it runs before any shell runner.

Since:
2.10
Author:
Chris Bono
  • Constructor Details

    • InitializeConnectionApplicationRunner

      public InitializeConnectionApplicationRunner(TargetHolder targetHolder, ConfigCommands configCommands, ThrowableResultHandler resultHandler)
      Construct a new InitializeConnectionApplicationRunner instance.
      Parameters:
      targetHolder - holds the target server connection info
      configCommands - commands to configure the server
      resultHandler - handles exceptions form the connection attempt
  • Method Details

    • run

      public void run(org.springframework.boot.ApplicationArguments args) throws Exception
      Specified by:
      run in interface org.springframework.boot.ApplicationRunner
      Throws:
      Exception