Package jcckit.util
Class PropertiesBasedConfigData
java.lang.Object
jcckit.util.FlatConfigData
jcckit.util.PropertiesBasedConfigData
- All Implemented Interfaces:
ConfigData
Implementation of
FlatConfigData
based on
java.util.Properties.-
Constructor Summary
ConstructorDescriptionPropertiesBasedConfigData
(Properties properties) Creates an instance based on the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigData
createConfigData
(String path) Returns a new instance of PropertiesBasedConfigData for the specified full path.protected String
Returns the value for the specified full key.Methods inherited from class jcckit.util.FlatConfigData
get, getFullKey, getNode
-
Constructor Details
-
PropertiesBasedConfigData
Creates an instance based on the specified properties. The path is undefined.
-
-
Method Details
-
getValue
Returns the value for the specified full key. The call will be delegated to the wrapped java.util.properties object.- Specified by:
getValue
in classFlatConfigData
- Parameters:
fullKey
- The full key including path. null is not allowed.- Returns:
- the value or null if not found.
-
createConfigData
Returns a new instance of PropertiesBasedConfigData for the specified full path. The wrapped java.util.Properties will be the same as of this instance.- Specified by:
createConfigData
in classFlatConfigData
- Parameters:
path
- The full path.- Returns:
- a new instance.
-