find

abstract fun find(type: Class<*>, qualifier: String?): Any?

The dependency of type named qualifier, or the only one of type when qualifier is null; null when there is none.


open fun find(type: Type, qualifier: String?): Any?

The dependency of the full type, a parameterized one, named qualifier, or the only one of type when qualifier is null; null when there is none. By its class (Types.rawOf) by default, for a host that knows no generics; a host that does finds it by every type argument.

Throws

when several are of type and none is the one to take.