class KoinApplication
Koin Application Help prepare resources for Koin context
Author
Arnaud Giuliani
val koin: Koin |
fun close(): Unit
Close all resources from Koin & remove Standalone Koin instance |
|
fun createEagerInstances(): KoinApplication
Create Single instances Definitions marked as createdAtStart |
|
fun environmentProperties(): KoinApplication
Load properties from environment |
|
fun fileProperties(fileName: String = "/koin.properties"): KoinApplication
Load properties from file |
|
fun logger(logger: Logger): KoinApplication
Set Koin Logger |
|
fun modules(modules: Module): KoinApplicationfun modules(modules: List<Module>): KoinApplication
Load definitions from modules |
|
fun printLogger(level: Level = Level.INFO): KoinApplication
Set Koin to use PrintLogger, by default at Level.INFO |
|
fun properties(values: Map<String, Any>): KoinApplication
Load properties from Map |
|
fun unloadModules(vararg modules: Module): KoinApplicationfun unloadModules(modules: List<Module>): KoinApplication |
var logger: Logger |
fun create(): KoinApplication
Create a new instance of KoinApplication |