inject

open override fun <T : Any> inject(what: Identifier<T>): Injector<T>

Create an injector for the given identifier. The behavior of the injection depends on the injection environment, but this is guaranteed to return an element of type T.

Return

A read-only property which, on get, returns the relevant object.

Parameters

what

The identifier to use for finding the relevant element.

T

The type of the element to retrieve.