Class KeikaiConfig

java.lang.Object
io.keikai.model.sys.KeikaiConfig

public class KeikaiConfig extends Object
Centralized configuration for Keikai engine.

Reads properties from (in priority order):

  1. Programmatic overrides via setProperty(String, String)
  2. System properties (-Dio.keikai.xxx=value)
  3. The keikai.properties file on the classpath
  4. A pluggable KeikaiConfig.ConfigProvider (e.g., ZK Library integration)
Since:
7.0.0
  • Constructor Details

    • KeikaiConfig

      public KeikaiConfig()
  • Method Details

    • getProperty

      public static String getProperty(String key)
      Returns the value for the given key, or null if not found.
    • getProperty

      public static String getProperty(String key, String defaultValue)
      Returns the value for the given key, or defaultValue if not found.
    • getBooleanProperty

      public static boolean getBooleanProperty(String key, boolean defaultValue)
      Returns the boolean value for the given key.
    • setProperty

      public static void setProperty(String key, String value)
      Programmatically override a property. Useful for tests and headless setup.
    • setExternalProvider

      public static void setExternalProvider(KeikaiConfig.ConfigProvider provider)
      Sets an external configuration provider (e.g., ZK Library bridge).
    • clearOverrides

      public static void clearOverrides()
      Clears all programmatic overrides. Intended for test cleanup.