Package utils
Class ReadProperties
java.lang.Object
utils.ReadProperties
Utility class for reading properties from a configuration file. Loads properties from
'config.properties' file in the classpath.
-
Constructor Summary
Constructors -
Method Summary
-
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
Gets a property value by its key.- Parameters:
key
- the property key- Returns:
- the property value with leading and trailing whitespace removed
-