Top Description Fields Constructors Methods
org.hsqldb.util

public Class MainInvoker

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, .Method, java.util.ArrayList

Invokes the static main(String[]) method from each class specified. This class will System.exit() if any invocation fails.
Author
Blaine Simpson (blaine dot simpson at admc dot com)
Since
HSQLDB 1.8.0
Version
$Revision: 6721 $, $Date: 2024-04-03 18:05:14 +0100 (Wed, 03 Apr 2024) $

Field Summary

Modifier and TypeField and Description
private static String[]
public static final String
private static String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
invoke(String
String
className
,
String[]
String[]
args
)

Invokes the static main(String[]) method from each specified class.

public static void
main(String[]
Run java org.hsqldb.util.MainInvoker --help for syntax help
sa
)

Invokes the static main(String[]) method from each specified class.

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

emptyStringArrayback to summary
private static String[] emptyStringArray
LSback to summary
public static final String LS
SYNTAX_MSGback to summary
private static String SYNTAX_MSG

Constructor Detail

MainInvokerback to summary
public MainInvoker()

Method Detail

invokeback to summary
public static void invoke(String className, String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException

Invokes the static main(String[]) method from each specified class.

Parameters
className:String

String

args:String[]

String[]

Exceptions
ClassNotFoundException:
if not found
NoSuchMethodException:
if not found
IllegalAccessException:
on no access
InvocationTargetException:
on invocation failure
mainback to summary
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:String[]

Run java org.hsqldb.util.MainInvoker --help for syntax help

syntaxFailureback to summary
private static void syntaxFailure()