public class Config extends Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
URL |
getConfigLocation()
Helper method to show where the config file is stored.
|
String |
getMandatoryPropertyValue(String key)
Looks for value of the named parameter, using command line parameters in
preference to those in the config if they exist.
|
String |
getOptionalPropertyValue(String key)
Parameters passed on the command line over-ride values from file
|
Double |
getPropertyDoubleValue(String key) |
Integer |
getPropertyIntegerValue(String key) |
long |
getPropertyLongValue(String key) |
public String getMandatoryPropertyValue(String key)
key
- public String getOptionalPropertyValue(String key)
key
- public URL getConfigLocation()
public long getPropertyLongValue(String key)
Copyright © 2014 Leonard UK Ltd. All rights reserved.