public final class OfficeFloorConsoleMain extends Object
main
entrance point to running
OfficeFloorCommand
.Modifier and Type | Class and Description |
---|---|
static interface |
OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler
Interface to error handler for
OfficeFloorConsoleMain . |
Modifier and Type | Field and Description |
---|---|
static OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler |
DEFAULT_ERROR_HANDLER
|
static boolean |
isExit
Flags that
System.exit(int) is called on an error to indicate
failure to calling script. |
static String |
OFFICE_FLOOR_HOME
Environment property to specify where the
OfficeFloor home
directory is located. |
static String |
PROPERTIES_FILE_RELATIVE_PATH
Relative path from the
OFFICE_FLOOR_HOME to find the properties
file. |
Constructor and Description |
---|
OfficeFloorConsoleMain() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arguments)
Entrance point for running an
OfficeFloorCommand . |
static void |
run(String scriptName,
String[] executeArguments,
OfficeFloorConsoleFactory factory,
OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler errorHandler)
Runs the
OfficeFloorConsole . |
public static final String OFFICE_FLOOR_HOME
OfficeFloor
home
directory is located.public static final String PROPERTIES_FILE_RELATIVE_PATH
OFFICE_FLOOR_HOME
to find the properties
file.public static final OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler DEFAULT_ERROR_HANDLER
public static boolean isExit
Flags that System.exit(int)
is called on an error to indicate
failure to calling script.
This is typically only used for testing to not cause the JVM to exit while running tests that are expected to error.
public static void main(String[] arguments) throws Throwable
OfficeFloorCommand
.arguments
- Command line arguments.Throwable
- If fails to run the OfficeFloorCommand
.public static void run(String scriptName, String[] executeArguments, OfficeFloorConsoleFactory factory, OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler errorHandler) throws Exception
OfficeFloorConsole
.scriptName
- Name of script.executeArguments
- Execute arguments for the OfficeFloorConsole
.factory
- OfficeFloorConsoleFactory
.errorHandler
- OfficeFloorConsoleMain.OfficeFloorConsoleMainErrorHandler
.Exception
- If fails to run.Copyright © 2005–2016. All rights reserved.