|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcckit.util.FlatConfigData
jcckit.util.PropertiesBasedConfigData
public class PropertiesBasedConfigData
Implementation of FlatConfigData
based on
java.util.Properties.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class jcckit.util.FlatConfigData |
---|
get, getFullKey, getNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |