Class CommandLineInterface

java.lang.Object
de.dlr.proseo.ui.cli.CommandLineInterface
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Configuration @EnableAutoConfiguration @EnableConfigurationProperties @ComponentScan(basePackages="de.dlr.proseo") public class CommandLineInterface extends Object implements org.springframework.boot.CommandLineRunner
prosEO Command Line Interface application
Author:
Dr. Thomas Bassler
  • Field Details

    • isInteractiveMode

      public static boolean isInteractiveMode
      Indicator for interactive mode vs. running from input redirection
  • Constructor Details

    • CommandLineInterface

      public CommandLineInterface()
  • Method Details

    • getCommandLineInterface

      public static CommandLineInterface getCommandLineInterface()
      Returns:
      the commandLineInterface
    • getLoginManager

      public LoginManager getLoginManager()
      Returns:
      the loginManager
    • run

      public void run(String... args) throws Exception
      Main command loop after initialization of Spring environment
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Parameters:
      args - the command line arguments
      Throws:
      Exception - on any unrecoverable failure
    • main

      public static void main(String[] args)
      Main function to start the Spring application; exits with return code 0 on normal termination, with return code 1 otherwise
      Parameters:
      args - the command line arguments