const mixinafIocConfig::ConfigSource

afIocConfig::ConfigSource

@Js

(Service) - Provides the config values.

config

Source

abstract Str:Obj? config()

Returns a case-insensitive map of all the config values

configMuted

Source

abstract Str:Obj? configMuted()

Returns a case-insensitive map suitable for logging. Same as config() but without environment variables and duplicated env config.

env

Source

abstract Str? env()

Properties defined with this prefix override those without. Example, if env equals dev and the given the config contains:

acme.myProperty     = wot 
dev.acme.myProperty = ever

Then the config acme.myProperty would have the value ever.

env is set via the special config property afIocConfig.env.

get

Source

@Operator
abstract Obj? get(Str id, Type? coerceTo := null, Bool checked := true)

Return the config value with the given id, optionally coercing it to the given type.

Throws ArgErr if the ID could not be found.

make

Source

static new make(ConfigProvider[] configProviders)

Creates a ConfigSource instance with the given ConfigProviders.