public class PropertiesBasedConfigData extends FlatConfigData
FlatConfigData based on
java.util.Properties.| Constructor and Description |
|---|
PropertiesBasedConfigData(Properties properties)
Creates an instance based on the specified properties.
|
PropertiesBasedConfigData(String fileName)
Creates an instance from the specified .properties file.
|
| Modifier and Type | Method and Description |
|---|---|
protected ConfigData |
createConfigData(String path)
Returns a new instance of PropertiesBasedConfigData
for the specified full path.
|
protected String |
getValue(String fullKey)
Returns the value for the specified full key.
|
get, getFullKey, getNodepublic PropertiesBasedConfigData(String fileName) throws IOException
fileName - File name of the .properties file relative
to the working directory or absolute.IOException - if the .properties does not exist or could
not be read.public PropertiesBasedConfigData(Properties properties)
protected String getValue(String fullKey)
getValue in class FlatConfigDatafullKey - The full key including path. null is not allowed.protected ConfigData createConfigData(String path)
createConfigData in class FlatConfigDatapath - The full path.Copyright © 2016. All Rights Reserved.