Package com.intellijava.core.utils
Class Config2
java.lang.Object
com.intellijava.core.utils.Config2
Config2 is a class that reads the configuration properties from a "config.properties" file.
- Author:
- github.com/Barqawiz
-
Method Summary
Modifier and TypeMethodDescriptionstatic Config2
Get the singleton instance of the Config2 class.getProperty
(String key) Get a property value by key.
-
Method Details
-
getInstance
Get the singleton instance of the Config2 class. If the instance does not exist, it will be created.- Returns:
- the instance of Config2
-
getProperty
Get a property value by key.- Parameters:
key
- the key of the property to be retrieved.- Returns:
- the value of the property, or null if the key is not found.
-