FYI I have added `profile(profile: String)` as wel...
# spring
s
FYI I have added
profile(profile: String)
as well as a more flexible
environment(condition: (Environement -> Boolean)
functions to the function Kotlin bean registration DSL
Copy code
beans {
	bean<Foo>()
	profile("bar") {
		bean<Bar>("bar")
	}
	environment({it.activeProfiles.contains("baz")}) {
		bean { Baz(it.ref<Bar>()) }
		bean { Baz(it.ref("bar")) }
	}
}
👌 2