Component Factory Container
Manages the factories to create the different components of Variist.
It takes basically the responsibility of a dependency injection facility, tailored for Variist - initially copied from Atrium.
Since
2.0.0
Types
Extension point for ComponentFactoryContainer (such as factory methods).
Properties
Creates an ArbExtensionPoint based on this ComponentFactoryContainer.
Quick access to build a VariistConfig from this ComponentFactoryContainer.
Creates an OrderedExtensionPoint based on this ComponentFactoryContainer.
Creates an SemiOrderedExtensionPoint based on this ComponentFactoryContainer.
Functions
Returns the component of type T 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 T 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.
Creates a Random whose seed is based on the VariistConfig.seed of this ComponentFactoryContainer and the given seedOffset.
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.