withComponent

open override fun <I : Any> withComponent(kClass: KClass<I>, factory: (ComponentFactoryContainer) -> I)(source)

Expects a factory which creates the component of type I which is used instead of the currently specified factory.