winter / io.jentz.winter / Component / Builder / setOfType

setOfType

inline fun <reified R : Any> setOfType(qualifier: Any? = null, generics: Boolean = false, override: Boolean = false): TypeKey<Set<R>>

Register a service that resolves a set of instance of type R.

This may return an empty set if no service of type R is registered.

Parameters

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.