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 Summary
ConstructorDescriptionInitializeConnectionApplicationRunner
(TargetHolder targetHolder, ConfigCommands configCommands, ThrowableResultHandler resultHandler) Construct a new InitializeConnectionApplicationRunner instance. -
Method Summary
-
Constructor Details
-
InitializeConnectionApplicationRunner
public InitializeConnectionApplicationRunner(TargetHolder targetHolder, ConfigCommands configCommands, ThrowableResultHandler resultHandler) Construct a new InitializeConnectionApplicationRunner instance.- Parameters:
targetHolder
- holds the target server connection infoconfigCommands
- commands to configure the serverresultHandler
- handles exceptions form the connection attempt
-
-
Method Details
-
run
- Specified by:
run
in interfaceorg.springframework.boot.ApplicationRunner
- Throws:
Exception
-