public final class DBResourceConfigParser extends Object
DBResourcesConfiguration. Use the following API to parse the JSON file.
DBResourceConfigParser parser = new DBResourceConfigParser(new File("jsonFile"));
parser.parse();| Constructor and Description |
|---|
DBResourceConfigParser(File dbConfigJSON)
Creates an instance of parser to parse contents of JSON file containing definition of db resources.
|
| Modifier and Type | Method and Description |
|---|---|
DBResourcesConfiguration |
parse()
Parse the JSON file and returns an instance of
DBResourcesConfiguration for use within API. |
public DBResourceConfigParser(File dbConfigJSON)
dbConfigJSON - - JSON file to parse.public DBResourcesConfiguration parse() throws RoutingException
DBResourcesConfiguration for use within API.DBResourcesConfigurationRoutingException - - If some error occurs while parsing the file.