2023-02-21 19:34:42 +00:00
|
|
|
// 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.Boolean
|
2023-06-18 17:38:36 +00:00
|
|
|
import kotlin.Deprecated
|
2023-02-21 19:34:42 +00:00
|
|
|
import kotlin.String
|
2023-06-18 17:38:36 +00:00
|
|
|
import kotlin.Unit
|
2023-02-21 19:34:42 +00:00
|
|
|
import org.koin.core.Koin
|
|
|
|
import org.koin.core.definition.Definition
|
|
|
|
import org.koin.core.definition.KoinDefinition
|
|
|
|
import org.koin.core.module.Module
|
2023-06-18 17:38:36 +00:00
|
|
|
import org.koin.core.parameter.ParametersDefinition
|
2023-02-21 19:34:42 +00:00
|
|
|
import org.koin.core.qualifier.named
|
|
|
|
import org.koin.core.scope.Scope
|
|
|
|
|
2023-02-22 04:20:15 +00:00
|
|
|
/**
|
|
|
|
* @return Definition by key "sampleInfo"
|
|
|
|
*/
|
2023-02-21 19:34:42 +00:00
|
|
|
public val Scope.sampleInfo: Test<String>
|
|
|
|
get() = get(named("sampleInfo"))
|
|
|
|
|
2023-02-22 04:20:15 +00:00
|
|
|
/**
|
|
|
|
* @return Definition by key "sampleInfo"
|
|
|
|
*/
|
2023-02-21 19:34:42 +00:00
|
|
|
public val Koin.sampleInfo: Test<String>
|
|
|
|
get() = get(named("sampleInfo"))
|
|
|
|
|
2023-06-18 17:38:36 +00:00
|
|
|
/**
|
|
|
|
* @return Definition by key "sampleInfo" with [parameters]
|
|
|
|
*/
|
|
|
|
public inline fun Scope.sampleInfo(noinline parameters: ParametersDefinition): Unit =
|
|
|
|
get(named("sampleInfo"), parameters)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Definition by key "sampleInfo" with [parameters]
|
|
|
|
*/
|
|
|
|
public inline fun Koin.sampleInfo(noinline parameters: ParametersDefinition): Unit =
|
|
|
|
get(named("sampleInfo"), parameters)
|
|
|
|
|
2023-02-22 04:20:15 +00:00
|
|
|
/**
|
|
|
|
* Will register [definition] with [org.koin.core.module.Module.single] and key "sampleInfo"
|
|
|
|
*/
|
2023-06-18 17:38:36 +00:00
|
|
|
@Deprecated(
|
|
|
|
"This definition is old style and should not be used anymore. Use singleSampleInfo instead",
|
|
|
|
ReplaceWith("singleSampleInfo"),
|
|
|
|
)
|
2023-02-21 19:34:42 +00:00
|
|
|
public fun Module.sampleInfoSingle(createdAtStart: Boolean = false,
|
|
|
|
definition: Definition<Test<String>>): KoinDefinition<Test<String>> =
|
|
|
|
single(named("sampleInfo"), createdAtStart = createdAtStart, definition = definition)
|
|
|
|
|
2023-06-18 17:38:36 +00:00
|
|
|
/**
|
|
|
|
* Will register [definition] with [org.koin.core.module.Module.single] and key "sampleInfo"
|
|
|
|
*/
|
|
|
|
public fun Module.singleSampleInfo(createdAtStart: Boolean = false,
|
|
|
|
definition: Definition<Test<String>>): KoinDefinition<Test<String>> =
|
|
|
|
single(named("sampleInfo"), createdAtStart = createdAtStart, definition = definition)
|
|
|
|
|
2023-02-22 04:20:15 +00:00
|
|
|
/**
|
|
|
|
* Will register [definition] with [org.koin.core.module.Module.factory] and key "sampleInfo"
|
|
|
|
*/
|
2023-06-18 17:38:36 +00:00
|
|
|
@Deprecated(
|
|
|
|
"This definition is old style and should not be used anymore. Use factorySampleInfo instead",
|
|
|
|
ReplaceWith("factorySampleInfo"),
|
|
|
|
)
|
2023-02-21 19:34:42 +00:00
|
|
|
public fun Module.sampleInfoFactory(definition: Definition<Test<String>>):
|
|
|
|
KoinDefinition<Test<String>> = factory(named("sampleInfo"), definition = definition)
|
2023-06-18 17:38:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Will register [definition] with [org.koin.core.module.Module.factory] and key "sampleInfo"
|
|
|
|
*/
|
|
|
|
public fun Module.factorySampleInfo(definition: Definition<Test<String>>):
|
|
|
|
KoinDefinition<Test<String>> = factory(named("sampleInfo"), definition = definition)
|