koin-test / org.koin.test.ext.koin / org.koin.core.KoinContext

Extensions for org.koin.core.KoinContext

allInstances

fun KoinContext.allInstances(): List<InstanceHolder<*>>

Return all instances of Koin

allPaths

fun KoinContext.allPaths(): HashSet<Path>

Return all contexts of Koin

allProperties

fun KoinContext.allProperties(): HashMap<String, Any>

Return all properties of Koin

beanDefinition

fun KoinContext.beanDefinition(clazz: KClass<*>): BeanDefinition<*>?

return beanDefinition for given class

beanDefinitions

fun KoinContext.beanDefinitions(): HashSet<BeanDefinition<*>>

Return all definitions of Koin

getPath

fun KoinContext.getPath(path: String): Path

return path