Class MainCommandLineSupport

  • Direct Known Subclasses:
    Main

    public abstract class MainCommandLineSupport
    extends MainSupport
    Support for command line arguments to Camel main.
    • Constructor Detail

      • MainCommandLineSupport

        public MainCommandLineSupport​(Class... configurationClasses)
      • MainCommandLineSupport

        public MainCommandLineSupport()
    • Method Detail

      • initOptions

        protected void initOptions()
      • showOptions

        public void showOptions()
        Displays the command line options.
      • parseArguments

        public void parseArguments​(String[] arguments)
        Parses the command line arguments.
      • run

        public int run​(String[] args)
                throws Exception
        Parses the command line arguments then runs the program. The run method will keep blocking until the program is stopped.
        Returns:
        the exit code, usually 0 for normal termination.
        Throws:
        Exception
      • showOptionsHeader

        public void showOptionsHeader()
        Displays the header message for the command line options.