const mixinafIocConfig::ConfigSource
afIocConfig::ConfigSource
@
Js
(Service) - Provides the config values.
- config
Returns a case-insensitive map of all the config values
- configMuted
abstract Str:Obj? configMuted()
Returns a case-insensitive map suitable for logging. Same as
config()
but without environment variables and duplicated env config.- env
abstract Str? env()
Properties defined with this prefix override those without. Example, if
env
equalsdev
and the given the config contains:acme.myProperty = wot dev.acme.myProperty = ever
Then the config
acme.myProperty
would have the valueever
.env
is set via the special config propertyafIocConfig.env
.- get
@
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
static new make(ConfigProvider[] configProviders)
Creates a
ConfigSource
instance with the givenConfigProviders
.