Class ApplicationPropertyLoader

java.lang.Object
com.cloudforge.core.config.ApplicationPropertyLoader

public final class ApplicationPropertyLoader extends Object
Loads application.properties then application-local.properties from the classpath, with later resources overriding earlier ones.

Resolution helpers also consult environment variables and JVM system properties so CI/local shells can override without editing files.

Since:
3.3.0
  • Method Details

    • load

      public static Properties load()
      Merged classpath properties (application then application-local).
    • clearCache

      public static void clearCache()
      Clears the cache (tests).
    • resolve

      public static String resolve(String propertyKey)
      Resolve a dotted property key with env / system / file precedence.

      Order: env (CFC_MANAGER_URL for cfc.manager.url) → JVM -Dkey → classpath properties.

    • applyPropertyDefaults

      public static void applyPropertyDefaults(DeploymentConfig config)
      Fill blank DeploymentConfig fields that declare ConfigField.propertyKey().