Class Configuration

java.lang.Object
org.episteme.core.io.Configuration

public class Configuration extends Object
Global configuration loader for Episteme.

Loads properties from 'episteme.properties' at the root of the classpath.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • get

      public static String get(String key)
      Gets a property value.
      Parameters:
      key - the property key
      Returns:
      the property value, or null if not found
    • get

      public static String get(String key, String defaultValue)
      Gets a property value with a default.
      Parameters:
      key - the property key
      defaultValue - the default value
      Returns:
      the property value, or defaultValue if not found
    • getDouble

      public static double getDouble(String key, double defaultValue)
      Gets a double property value with a default.
      Parameters:
      key - the property key
      defaultValue - the default value
      Returns:
      the property value as double, or defaultValue if not found or invalid
    • getInt

      public static int getInt(String key, int defaultValue)
      Gets an int property value with a default.
      Parameters:
      key - the property key
      defaultValue - the default value
      Returns:
      the property value as int, or defaultValue if not found or invalid