Package jcckit.util

Class PropertiesBasedConfigData

  • All Implemented Interfaces:
    ConfigData

    public class PropertiesBasedConfigData
    extends FlatConfigData
    Implementation of FlatConfigData based on java.util.Properties.
    Author:
    Franz-Josef Elmer
    • Constructor Detail

      • PropertiesBasedConfigData

        public PropertiesBasedConfigData​(Properties properties)
        Creates an instance based on the specified properties. The path is undefined.
    • Method Detail

      • getValue

        protected String getValue​(String fullKey)
        Returns the value for the specified full key. The call will be delegated to the wrapped java.util.properties object.
        Specified by:
        getValue in class FlatConfigData
        Parameters:
        fullKey - The full key including path. null is not allowed.
        Returns:
        the value or null if not found.
      • createConfigData

        protected ConfigData createConfigData​(String path)
        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 class FlatConfigData
        Parameters:
        path - The full path.
        Returns:
        a new instance.