- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
private fun getProviders(): List<Provider> =
applicationContext.getBeansOfType(Provider::class.java).values +
applicationContext.getBeansOfType(List::class.java).values.flatten().flatMap { bean ->
when (bean) {
is Provider -> listOf(bean)
else -> listOf()
}
}