winter / io.jentz.winter / Injector / lazyInstancesOfType

lazyInstancesOfType

inline fun <reified R : Any> lazyInstancesOfType(generics: Boolean = false): Injector.InjectedProperty<Set<R>>

Creates and registers a lazy property delegate for a Set of instances of type R.

The instances get retrieved/created on first property access.

Parameters

generics - Preserve generic type parameters.

Return
The created InjectedProperty.