<divclass="main-content"data-page-type="member"id="content"pageIds="micro_utils.dokka::dev.inmo.micro_utils.startup.launcher/StartLauncherPlugin/setupDI/[Error type: Unresolved type for Module]#dev.inmo.micro_utils.startup.launcher.Config#kotlinx.serialization.json.JsonObject?/PointingToDeclaration//-1478683138">
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><spandata-unresolved-link="/&lt;Error class: unknown class&gt;///PointingToDeclaration/"><Error class: unknown class></span><spanclass="token punctuation">.</span><ahref="setup-d-i.html"><spanclass="token function">setupDI</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">config<spanclass="token operator">: </span><ahref="../-config/index.html">Config</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">rawJsonObject<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.serialization.json/JsonObject///PointingToDeclaration/">JsonObject</span><spanclass="token operator">?</span><spanclass="token operator"> = </span>null</span></span><spanclass="token punctuation">)</span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/MicroUtils/blob/master//startup/launcher/src/commonMain/kotlin/StartLauncherPlugin.kt#L32">source</a>)</span></span></div><br><hr><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><spandata-unresolved-link="/&lt;Error class: unknown class&gt;///PointingToDeclaration/"><Error class: unknown class></span><spanclass="token punctuation">.</span><ahref="setup-d-i.html"><spanclass="token function">setupDI</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">config<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.serialization.json/JsonObject///PointingToDeclaration/">JsonObject</span></span></span><spanclass="token punctuation">)</span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/MicroUtils/blob/master//startup/launcher/src/commonMain/kotlin/StartLauncherPlugin.kt#L79">source</a>)</span></span></div><pclass="paragraph">Will deserialize <ahref="../-config/index.html">Config</a> from <ahref="setup-d-i.html">config</a>, register it in receiver Module (as well as <spandata-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> and <spandata-unresolved-link="kotlinx.serialization.json/Json///PointingToDeclaration/">kotlinx.serialization.json.Json</span>)</p><pclass="paragraph">Besides, in this method will be called <ahref="../../dev.inmo.micro_utils.startup.plugin/-start-plugin/setup-d-i.html">StartPlugin.setupDI</a> on each plugin from <ahref="../-config/plugins.html">Config.plugins</a>. In case when some plugin will not be loaded correctly it will be reported throw the <spandata-unresolved-link="dev.inmo.micro_utils.startup.launcher/StartLauncherPlugin/logger/#/PointingToDeclaration/">logger</span></p></div></div>