buildChainedOrNull

abstract fun <I : Any> buildChainedOrNull(kClass: KClass<I>): Sequence<I>?(source)

Returns a chain of components of type I using a corresponding chain of factories or null in case no chain was found which is able to build a chain of components of the given type.

Throws

in case one of factories returns an illegal type.