ComponentFactoryContainer
Manages the factories to create the different components of Atrium. It takes basically the responsibility of a dependency injection facility, tailored for Atrium.
Functions
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.
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.
Returns a chain of factories which shall build a chain of components of the specified kClass or null
in case no chain was found which is able to build a chain of components of the given type.
Returns a factory which is able to build a component for the given kClass or null
in case no factory was found which is able to build a component of the given type.
Merges the given componentFactoryContainer (if not null
) with this
ComponentFactoryContainer creating a new ComponentFactoryContainer where defined dependencies in componentFactoryContainer will have precedence over dependencies defined in this instance.