All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.GeneratedDefinitionsStartLauncherPlugin.kt Maven / Gradle / Ivy

There is a newer version: 0.23.0
Show newest version
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
// TO REGENERATE IT JUST DELETE FILE
// ORIGINAL FILE: StartLauncherPlugin.kt
package dev.inmo.micro_utils.startup.launcher

import kotlin.Boolean
import kotlinx.serialization.json.Json
import org.koin.core.Koin
import org.koin.core.definition.Definition
import org.koin.core.definition.KoinDefinition
import org.koin.core.module.Module
import org.koin.core.qualifier.named
import org.koin.core.scope.Scope

/**
 * @return Definition by key "baseJsonProvider"
 */
public val Scope.baseJsonProvider: Json?
  get() = getOrNull(named("baseJsonProvider"))

/**
 * @return Definition by key "baseJsonProvider"
 */
public val Koin.baseJsonProvider: Json?
  get() = getOrNull(named("baseJsonProvider"))

/**
 * Will register [definition] with [org.koin.core.module.Module.single] and key "baseJsonProvider"
 */
public fun Module.baseJsonProviderSingle(createdAtStart: Boolean = false, definition: Definition):
    KoinDefinition = single(named("baseJsonProvider"), createdAtStart = createdAtStart, definition
    = definition)

/**
 * Will register [definition] with [org.koin.core.module.Module.factory] and key "baseJsonProvider"
 */
public fun Module.baseJsonProviderFactory(definition: Definition): KoinDefinition =
    factory(named("baseJsonProvider"), definition = definition)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy