DeclarativeBeanConfiguration()
Abstract super-class for BeanConfigurations to define their beans in a declarative fashion.
Usage example:
// 1. extend BeanConfiguration:
class MyBeanConfiguration : DeclarativeBeanConfiguration() {
override fun beans() {
// 2. define your beans:
bean("my_bean") {
// 3. obtain dependency to another bean:
val anotherBean = lookUpBean(AnotherBean::class)
MyBean(anotherBean!!)
}
}
}
Author
Christopher Frieler