public class Settings_impl extends Object implements Settings
Modifier and Type | Field and Description |
---|---|
protected static String |
LOG_RESOURCE_BUNDLE |
Constructor and Description |
---|
Settings_impl() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getKeys()
Return a set of keys of all properties in the map
|
String |
getSetting(String name)
Get the value of an external override setting.
|
String[] |
getSettingArray(String name)
Get the array of values for an external override setting.
|
void |
load(InputStream in)
Load properties from an input stream.
|
void |
loadSystemDefaults()
Load properties from the comma-separated list of files specified in the system property
UimaExternalOverrides
Files are loaded in order --- so in descending priority.
|
String |
lookUp(String name)
Look up the value for a property.
|
protected static final String LOG_RESOURCE_BUNDLE
public void load(InputStream in) throws IOException
,
or new-line, so
can span multiple lines without using a final \load
in interface Settings
in
- - Stream holding propertiesIOException
- if name characters illegalpublic void loadSystemDefaults() throws ResourceConfigurationException
loadSystemDefaults
in interface Settings
ResourceConfigurationException
- wraps IOExceptionpublic String lookUp(String name) throws ResourceConfigurationException
lookUp
in interface Settings
name
- - name to look upResourceConfigurationException
- if the value references an undefined propertypublic String getSetting(String name) throws ResourceConfigurationException
Settings
getSetting
in interface Settings
name
- - the name of the parameterResourceConfigurationException
- if the value references an undefined property, or the value is an arraySettings.getSetting(java.lang.String)
public String[] getSettingArray(String name) throws ResourceConfigurationException
Settings
getSettingArray
in interface Settings
name
- - the name of the parameterResourceConfigurationException
- if the value references an undefined property, or the value is not an arraySettings.getSettingArray(java.lang.String)
Copyright © 2016. All rights reserved.