winter / io.jentz.winter / Component / Builder / include

include

fun include(component: Component, override: Boolean = true, subcomponentIncludeMode: Component.Builder.SubcomponentIncludeMode = SubcomponentIncludeMode.Merge): Unit

Include dependency from the given component into the new component.

Parameters

component - The component to include the dependencies from.

override - Set to false to throw an exception if a dependency already exists otherwise it will be replaced.

subcomponentIncludeMode - Defines the behaviour when a subcomponent with the same qualifier already exists.