winter / io.jentz.winter / Component / Builder / subcomponent

subcomponent

fun subcomponent(qualifier: Any, override: Boolean = false, deriveExisting: Boolean = false, block: Component.Builder.() -> Unit): Unit

Register a subcomponent.

Parameters

qualifier - The qualifier of the subcomponent.

override - If true an existing subcomponent will be replaced.

deriveExisting - If true an existing subcomponent will be derived and replaced with the derived version.

block - A builder block to register provider on the subcomponent.