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
envequalsdevand the given the config contains:acme.myProperty = wot dev.acme.myProperty = ever
Then the config
acme.myPropertywould have the valueever.envis 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
ArgErrif the ID could not be found.- make
static new make(ConfigProvider[] configProviders)Creates a
ConfigSourceinstance with the givenConfigProviders.