koin-java / org.koin.java / KoinJavaComponent

KoinJavaComponent

object KoinJavaComponent

Koin Java Helper - inject/get into Java code

Author
@fredy-mederos

Author
Arnaud Giuliani

Functions

bind

fun <P : Any, S : Any> bind(primary: Class<P>, secondary: Class<S>, parameters: ParametersDefinition? = null): S

Retrieve given dependency

get

fun <T : Any> get(clazz: Class<T>, qualifier: Qualifier? = null, scope: Scope? = null, 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? = null, parameters: ParametersDefinition? = null): Lazy<T>

Retrieve given dependency lazily