PropertiesLoader

open class PropertiesLoader

A utility class for loading properties from a config.properties file.

This class reads the properties file when it is loaded. Once loaded, properties can be accessed using the getProperty and getIntProperty methods.

Note: This class logs errors using the IntelliJ Logger utility. If an error occurs during the loading of the properties file, it will be logged, and the exception's stack trace will be printed to standard error output.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getIntProperty(key: String): Int
Retrieves a property value from the loaded properties file and converts it to an integer.
Link copied to clipboard
open fun getProperty(key: String): String
Retrieves a property value from the loaded properties file.