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

commonMain.GeneratedDefinitionsTest.kt Maven / Gradle / Ivy

There is a newer version: 0.22.2
Show newest version
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
// TO REGENERATE IT JUST DELETE FILE
// ORIGINAL FILE: Test.kt
package dev.inmo.micro_utils.koin.generator.test

import kotlin.Any
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
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.parameter.ParametersDefinition
import org.koin.core.qualifier.named
import org.koin.core.scope.Scope

/**
 * @return Definition by key "sampleInfo"
 */
public val Scope.sampleInfo: Test
  get() = get(named("sampleInfo"))

/**
 * @return Definition by key "sampleInfo"
 */
public val Koin.sampleInfo: Test
  get() = get(named("sampleInfo"))

/**
 * @return Definition by key "sampleInfo" with [parameters]
 */
public inline fun Scope.sampleInfo(noinline parameters: ParametersDefinition): Test =
    get(named("sampleInfo"), parameters)

/**
 * @return Definition by key "sampleInfo" with [parameters]
 */
public inline fun Koin.sampleInfo(noinline parameters: ParametersDefinition): Test =
    get(named("sampleInfo"), parameters)

/**
 * Will register [definition] with [org.koin.core.module.Module.single] and key "sampleInfo"
 */
@Deprecated(
  "This definition is old style and should not be used anymore. Use singleSampleInfo instead",
  ReplaceWith("singleSampleInfo"),
)
public fun Module.sampleInfoSingle(createdAtStart: Boolean = false,
    definition: Definition>): KoinDefinition> =
    single(named("sampleInfo"), createdAtStart = createdAtStart, definition = definition)

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

/**
 * Will register [definition] with [org.koin.core.module.Module.factory] and key "sampleInfo"
 */
@Deprecated(
  "This definition is old style and should not be used anymore. Use factorySampleInfo instead",
  ReplaceWith("factorySampleInfo"),
)
public fun Module.sampleInfoFactory(definition: Definition>):
    KoinDefinition> = factory(named("sampleInfo"), definition = definition)

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

/**
 * @return Definition by key "test" with [parameters]
 */
public inline fun  Scope.test(noinline parameters: ParametersDefinition? = null): T
    = get(named("test"), parameters)

/**
 * @return Definition by key "test" with [parameters]
 */
public inline fun  Koin.test(noinline parameters: ParametersDefinition? = null): T
    = get(named("test"), parameters)

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

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

/**
 * @return Definition by key "testNullable" with [parameters]
 */
public inline fun  Scope.testNullable(noinline parameters: ParametersDefinition? =
    null): T? = getOrNull(named("testNullable"), parameters)

/**
 * @return Definition by key "testNullable" with [parameters]
 */
public inline fun  Koin.testNullable(noinline parameters: ParametersDefinition? =
    null): T? = getOrNull(named("testNullable"), parameters)

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy