Package utils

Class ReadProperties

java.lang.Object
utils.ReadProperties

public class ReadProperties extends Object
Utility class for reading properties from a configuration file. Loads properties from 'config.properties' file in the classpath.
  • Constructor Details

    • ReadProperties

      public ReadProperties()
      Constructs a new ReadProperties instance. Loads the configuration from 'config.properties' file in the classpath. Throws IllegalStateException if the file is not found.
  • Method Details

    • getProperty

      public String getProperty(String key)
      Gets a property value by its key.
      Parameters:
      key - the property key
      Returns:
      the property value with leading and trailing whitespace removed