winter / io.jentz.winter / Graph / instance

instance

inline fun <reified R : Any> instance(qualifier: Any? = null, generics: Boolean = false): R

Retrieve a non-optional instance of R.

Parameters

qualifier - An optional qualifier of the dependency.

generics - Preserves generic type parameters if set to true (default = false).

Exceptions

EntryNotFoundException -

Return
An instance of R