Class ApplicationPropertyLoader
java.lang.Object
com.cloudforge.core.config.ApplicationPropertyLoader
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 Summary
Modifier and TypeMethodDescriptionstatic voidFill blankDeploymentConfigfields that declareConfigField.propertyKey().static voidClears the cache (tests).static Propertiesload()Merged classpath properties (application then application-local).static StringResolve a dotted property key with env / system / file precedence.
-
Method Details
-
load
Merged classpath properties (application then application-local). -
clearCache
public static void clearCache()Clears the cache (tests). -
resolve
-
applyPropertyDefaults
Fill blankDeploymentConfigfields that declareConfigField.propertyKey().
-