See: Description
| Class | Description |
|---|---|
| BooleanConfigValue |
For specifying an Boolean parameter that can be read in from xml config file.
|
| ConfigFileReader |
The ConfigFile class provides a way of handling parameters that can be
updated without having to restart the application.
|
| ConfigValue<T> |
Abstract class for storing a single param.
|
| DoubleConfigValue |
For specifying a Double parameter that can be read in from xml config file.
|
| FloatConfigValue |
For specifying a Float parameter that can be read in from xml config file.
|
| IntegerConfigValue |
For specifying an Integer parameter that can be read in from xml config file.
|
| LongConfigValue |
For specifying a Long parameter that can be read in from xml config file.
|
| StringConfigValue |
For specifying a String parameter that can be read in from xml config file.
|
| StringListConfigValue |
For specifying a List of Strings parameter that can be read in from xml
config file.
|
| TestAPIKeyManager | |
| TestConfig |
| Exception | Description |
|---|---|
| ConfigFileReader.ConfigException |
An exception for when a parameter is being read in
|
| ConfigValue.ConfigParamException |
An exception for when a parameter is being read in
|
Parameters are declared in a Java class as static members. An example is:
public static String getProjectId() {
return projectId.getValue();
}
private static StringConfigValue projectId =
new StringConfigValue("transitime.core.projectId", "sfmta");
Such a parameter can be set either using a command line java property when the
application is invoked, such as:
-Dtransitime.core.projectId=mbta
Or in a configuration file:
<?xml version="1.0"?>
<transitime>
<core>
<projectId>
sfmta
</projectId>
<defaultBreakTimeSec>
120
</defaultBreakTimeSec>
</core>
</transitime>
Most parameters should be declared in org.transitimie.configData package.
Currently the configuration information is only read in at application startup. In the future would like to make this dynamic.