Class DefaultConfigurationPropertyReader

    • Constructor Detail

      • DefaultConfigurationPropertyReader

        public DefaultConfigurationPropertyReader()
    • Method Detail

      • read

        public java.util.List<ConfigurationProperty> read​(java.lang.String content)
                                                   throws java.lang.Throwable
        Description copied from interface: ConfigurationPropertyReader
        Reads a list of ConfigurationProperty objects from the provided content string.

        This method parses and loads configuration properties from the given string content. The format of the content is determined by the specific implementation of this interface.

        Example Usage

        
         ConfigurationPropertiesReader reader = ...; // Obtain an instance
         String content = "property1=value1\nproperty2=value2";
         List<ConfigurationProperty> properties = reader.load(content);
         // Process the loaded properties
         
        Specified by:
        read in interface ConfigurationPropertyReader
        Parameters:
        content - the string content to parse and load from; must not be null
        Returns:
        a list of ConfigurationProperty objects loaded from the content
        Throws:
        java.lang.Throwable - if any error occurs during loading
        See Also:
        ConfigurationProperty