provide

abstract fun <T> provide(type: Class<T>): T

Provides the factory with the given type type, or throws a TypeNotFoundException if there is no factory registered for the given type.

Return

the factory

Parameters

T

the factory type

type

the class of the type