winter / io.jentz.winter / Graph / instanceByKey

instanceByKey

fun <R : Any> instanceByKey(key: TypeKey<R>): R

Retrieve a non-optional instance of R by key.

Parameters

key - The type key of the instance.

Exceptions

EntryNotFoundException -

Return
An instance of R