doc / ch.tutteli.atrium.creating.impl / DefaultComponentFactoryContainer

DefaultComponentFactoryContainer

object DefaultComponentFactoryContainer : ComponentFactoryContainer (source)

Extension Functions

build

fun <I : Any> ComponentFactoryContainer.build(): I

Returns the component of type I using a corresponding factory or throws an IllegalStateException in case no factory was found which is able to build a component of the given type.

buildChained

fun <I : Any> ComponentFactoryContainer.buildChained(): Sequence<I>

Returns a chain of components of type I using a corresponding factory or throws an IllegalStateException in case no factory was found which is able to build a chain of components of the given type.