Package io.avaje.config.load
Class Loader
- java.lang.Object
-
- io.avaje.config.load.Loader
-
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Configuration.ExpressionEvalevalFor(Properties properties)Return the Expression evaluator using the given properties.Propertiesload()Provides properties by reading known locations.
-
-
-
Constructor Detail
-
Loader
public Loader()
-
-
Method Detail
-
evalFor
public static Configuration.ExpressionEval evalFor(Properties properties)
Return the Expression evaluator using the given properties.
-
load
public Properties load()
Provides properties by reading known locations.Main configuration
Firstly loads from main resources
- application.properties - application.yaml
Then loads from local files
- application.properties - application.yaml
Then loads from environment variable PROPS_FILE
Then loads from system property props.file
Then loads from load.properties
Test configuration
Once the main configuration is read it will try to read common test configuration. This will only be successful if the test resources are available (i.e. running tests).
Loads from test resources
- application-test.properties - application-test.yaml
-
-