Class Config2

java.lang.Object
com.intellijava.core.utils.Config2

public class Config2 extends Object
Config2 is a class that reads the configuration properties from a "config.properties" file.
Author:
github.com/Barqawiz
  • Method Details

    • getInstance

      public static Config2 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

      public String getProperty(String key)
      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.