public class EngineConfig extends Object
EngineConfig
class represents the main class of the EngineConfig tool.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_FILE_PATH_PROPERTY |
static String |
DEFAULT_CONFIG_PATH |
Modifier and Type | Method and Description |
---|---|
EngineConfigLogic |
getEngineConfigLogic() |
static EngineConfig |
getInstance() |
static void |
main(String... args)
The main method, instantiates the parser and executes.
|
void |
setEngineConfigLogic(EngineConfigLogic engineConfigLogic) |
void |
setParser(EngineConfigCLIParser parser) |
void |
setUpAndExecute(String... args)
Parses the arguments, validates that they are valid, instantiates the EngineConfigLogic object and executes the
desired action.
|
public static final String CONFIG_FILE_PATH_PROPERTY
public static final String DEFAULT_CONFIG_PATH
public void setUpAndExecute(String... args) throws Exception
args
- The arguments given by the user.Exception
public static void main(String... args)
args
- The arguments given by the user.public void setEngineConfigLogic(EngineConfigLogic engineConfigLogic)
public void setParser(EngineConfigCLIParser parser)
public EngineConfigLogic getEngineConfigLogic()
public static EngineConfig getInstance()
Copyright © 2012. All Rights Reserved.