inline fun <reified R : Any> mapOfProvidersForType(qualifier: Any? = null, generics: Boolean = false, override: Boolean = false, defaultKey: Any = "default"): TypeKey<Map<Any, Provider<R>>>
Register a service that resolves a map of qualifiers to providers for type R.
This may return an empty map if no service of type R is registered.
qualifier
- An optional qualifier.
generics
- If true this will preserve generic information of R.
override
- If true this will override an existing factory of this type.
defaultKey
- The key that is used for a service that was registered without qualifier.