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