koin-core / org.koin.core / KoinApplication

KoinApplication

class KoinApplication

Koin Application Help prepare resources for Koin context

Author
Arnaud Giuliani

Properties

koin

val koin: Koin

Functions

close

fun close(): Unit

createEagerInstances

Create Single instances Definitions marked as createdAtStart

fun createEagerInstances(): KoinApplication

environmentProperties

Load properties from environment

fun environmentProperties(): KoinApplication

fileProperties

Load properties from file

fun fileProperties(fileName: String = "/koin.properties"): KoinApplication

logger

Set Koin Logger

fun logger(logger: Logger): KoinApplication

modules

Load definitions from modules

fun modules(modules: Module): KoinApplication
fun modules(vararg modules: Module): KoinApplication
fun modules(modules: List<Module>): KoinApplication

printLogger

Set Koin to use PrintLogger, by default at Level.INFO

fun printLogger(level: Level = Level.INFO): KoinApplication

properties

Load properties from Map

fun properties(values: Map<String, String>): KoinApplication

unloadModules

fun unloadModules(module: Module): Unit
fun unloadModules(modules: List<Module>): Unit

Companion Object Functions

init

Create a new instance of KoinApplication

fun init(): KoinApplication