# StartLauncherPlugin

object StartLauncherPlugin : StartPlugin (source)

Default startup plugin. See setupDI and startPlugin for more info

## Functions

setupDI
Link copied to clipboard
open override fun ERROR CLASS: Symbol not found for Module. setupDI (config: JsonObject)

Will deserialize Config from config, register it in receiver Module (as well as CoroutineScope and kotlinx.serialization.json.Json)

fun ERROR CLASS: Symbol not found for Module. setupDI (config: Config , rawJsonObject: JsonObject? = null)
start
Link copied to clipboard
suspend fun start (config: Config ): ERROR CLASS: Symbol not found for KoinApplication

Call start with deserialized Config as is and serialize it to JsonObject to pass as the first parameter to the basic start method

suspend fun start (rawConfig: JsonObject): ERROR CLASS: Symbol not found for KoinApplication

Call start with deserialized Config as config and rawConfig as is

suspend fun start (config: Config , rawConfig: JsonObject): ERROR CLASS: Symbol not found for KoinApplication

Will create KoinApplication, init, load modules using StartLauncherPlugin and start plugins using the same base plugin. It is basic start method which accepts both config and rawConfig which suppose to be the same or at least rawConfig must contain serialized variant of config

startAsync
Link copied to clipboard
fun startAsync (config: Config ): Pair <ERROR CLASS: Symbol not found for KoinApplication, Job>

Call start with deserialized Config as is and serialize it to JsonObject to pass as the first parameter to the basic start method

fun startAsync (rawConfig: JsonObject): Pair <ERROR CLASS: Symbol not found for KoinApplication, Job>

Call start with deserialized Config as config and rawConfig as is

fun startAsync (config: Config , rawConfig: JsonObject): Pair <ERROR CLASS: Symbol not found for KoinApplication, Job>

Will create KoinApplication, init, load modules using StartLauncherPlugin and start plugins using the same base plugin. It is basic start method which accepts both config and rawConfig which suppose to be the same or at least rawConfig must contain serialized variant of config.

startPlugin
Link copied to clipboard
open suspend override fun startPlugin (koin: ERROR CLASS: Symbol not found for Koin)

Takes CoroutineScope and Config from the koin, and call starting of each plugin from Config.plugins ASYNCHRONOUSLY. Just like in setupDI, in case of fail in some plugin it will be reported using logger