sdeleuze
07/12/2017, 9:41 AMprofile(profile: String)
as well as a more flexible environment(condition: (Environement -> Boolean)
functions to the function Kotlin bean registration DSL
beans {
bean<Foo>()
profile("bar") {
bean<Bar>("bar")
}
environment({it.activeProfiles.contains("baz")}) {
bean { Baz(it.ref<Bar>()) }
bean { Baz(it.ref("bar")) }
}
}