koin-java / org.koin.java / KoinJavaComponent

KoinJavaComponent

object KoinJavaComponent

Koin Java Helper - inject/get into Java code

Author
@fredy-mederos

Author
Arnaud Giuliani

Functions

get

fun <T : Any> get(clazz: Class<T>, qualifier: Qualifier? = null, scope: Scope = Scope.GLOBAL, parameters: ParametersDefinition? = null): T

Retrieve given dependency

getKoin

fun getKoin(): Koin

inject lazily given property

inject

fun <T : Any> inject(clazz: Class<T>, qualifier: Qualifier? = null, scope: Scope = Scope.GLOBAL, parameters: ParametersDefinition? = null): Lazy<T>

Retrieve given dependency lazily