winter / io.jentz.winter / Graph / factory

factory

inline fun <reified A, reified R : Any> factory(qualifier: Any? = null, generics: Boolean = false): Factory<A, R>

Retrieve a non-optional factory function that takes an argument of type A and returns R.

Parameters

qualifier - An optional qualifier of the dependency.

generics - Preserves generic type parameters if set to true (default = false).

Exceptions

EntryNotFoundException -

Return
The factory that takes A and returns R