const mixinafIocConfig::FactoryDefaults
afIocConfig::FactoryDefaults
(Service) - Contribute to set factory default @Config
values. Only 3rd Party libraries, such as BedSheet need to set / contribute factory defaults. Applications should override factory defaults by contributing to ApplicationDefaults.
class AppModule { @Contribute { serviceType=FactoryDefaults# } static Void contributeFactoryDefaults(MappedConfig config) { config["config.id"] = "Config Value" }
Config values can be any immutable value.
@uses a MappedConfig of Str:Obj
of IDs to Objs. Obj values must be immutable.