getProvider

open fun <Type> getProvider(forClass: Class<Type>): () -> Type

Extracts provider of instances of the selected type. This method is internally used by inlined injection methods.

Return

provider instance bind to the selected class.

Parameters

forClass

type of objects provided by the selected provider.

See also

Throws

if no provider is registered for the selected type.