- Enclosing interface:
Configuration
public static interface Configuration.Builder
Build Configuration manually explicitly loading all the configuration as key value pairs.
Building configuration this way does NOT automatically load resources like application.properties
and also does NOT load ConfigurationSource. ALL configuration is explicitly loaded via calls
to put(String, String)
, putAll(Map)
.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build and return the Configuration.eventRunner
(ModificationEventRunner eventRunner) Optionally set the event runner to use .Specify to include standard resource loading.log
(ConfigurationLog log) Optionally set the log to use.Put an entry into the configuration.Put entries into the configuration.putAll
(Properties source) Put entries into the configuration from properties.resourceLoader
(ResourceLoader resourceLoader) Optionally set the resource loader to use.
-
Method Details
-
put
Put an entry into the configuration. -
putAll
Put entries into the configuration. -
putAll
Put entries into the configuration from properties. -
eventRunner
Optionally set the event runner to use . If not specified a foreground runner will be used. -
log
Optionally set the log to use. If not specified then a logger using System.Logger will be used. -
resourceLoader
Optionally set the resource loader to use. If not specified then class path based resource loader is used. -
includeResourceLoading
Configuration.Builder includeResourceLoading()Specify to include standard resource loading.This includes the loading of application.properties, application.yaml etc.
-
build
Configuration build()Build and return the Configuration.Performs evaluation of property values that contain expressions (e.g.
${user.home}
) and returns the configuration.
-