putFactory
inline fun <T : Any> ContextBuilderDsl.putFactory(noinline block: (Any) -> T)
Content copied to clipboard
Allows to put a factory within the module or environment.
A factory is the opposite of a singleton: instead of a single instance being created once and shared by all other services (also known as a singleton), factories