source

fun <T : Any> source(type: KClass<T>, qualifier: String? = null): T(source)

Retrieves a dependency of the specified type and qualifier

Return

The resolved dependency

Parameters

type

The KClass of the object

Type Parameters

T

The type of the object to retrieve

Throws

if neither explicit bindings nor the resolver supply the key


fun <T : Any> source(key: CanvasKey<T>): T(source)

Retrieves a dependency identified by CanvasKey

Return

The resolved dependency

Parameters

key

the key the object is registered under

Type Parameters

T

the type of the registered object

Throws

if neither explicit bindings nor the resolver supply the key