Module org.hsqldb

Class MainInvoker

java.lang.Object
org.hsqldb.util.MainInvoker

public class MainInvoker extends Object
Invokes the static main(String[]) method from each class specified. This class will System.exit() if any invocation fails.
Since:
HSQLDB 1.8.0
Author:
Blaine Simpson (blaine dot simpson at admc dot com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    invoke(String className, String[] args)
    Invokes the static main(String[]) method from each specified class.
    static void
    main(String[] sa)
    Invokes the static main(String[]) method from each specified class.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LS

      public static final String LS
  • Constructor Details

    • MainInvoker

      public MainInvoker()
  • Method Details

    • main

      public static void main(String[] sa)
      Invokes the static main(String[]) method from each specified class. This method will System.exit() if any invocation fails. Note that multiple class invocations are delimited by empty-string parameters. How the user supplies these empty strings is determined entirely by the caller's environment. From Windows this can generally be accomplished with double-quotes like "". From all popular UNIX shells, this can be accomplished with single or double-quotes: '' or "".
      Parameters:
      sa - Run java org.hsqldb.util.MainInvoker --help for syntax help
    • invoke

      Invokes the static main(String[]) method from each specified class.
      Parameters:
      className - String
      args - String[]
      Throws:
      ClassNotFoundException - if not found
      NoSuchMethodException - if not found
      IllegalAccessException - on no access
      InvocationTargetException - on invocation failure