fun <R : Any> instanceByKey(key: TypeKey<R>): R
Retrieve a non-optional instance of R by key.
R
key - The type key of the instance.
key
EntryNotFoundException -
EntryNotFoundException
Return An instance of R