build

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.

Throws

in case ComponentFactoryContainer.buildOrNull returns null because not suitable factory was found.

in case the factory returns an illegal type.