toothpick-runtime / toothpick.locators / FactoryLocator

FactoryLocator

open class FactoryLocator

The locator retrieves a Factory for a given class. In case no generated factory for a given class, we throw a NoFactoryFoundException.

See Also
Factory

Functions

getFactory

open static fun <T : Any> getFactory(clazz: Class<T>): Factory<T>