doc / ch.tutteli.atrium.creating / ComponentFactoryContainer / merge

merge

abstract fun merge(componentFactoryContainer: ComponentFactoryContainer?): ComponentFactoryContainer (source)

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.

For instance, this object has defined a Reporter and the given componentFactoryContainer as well, then the resulting ComponentFactoryContainer will return the Reporter of componentFactoryContainer when asked for it.