buildChainedOrNull

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

Returns a chain of components of type T 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.