Also, a gradle-style config function for `GenericA...
# spring
o
Also, a gradle-style config function for
GenericApplicationContext
could be useful:
Copy code
val c = GenericApplicationContext {
   registerBean<A>()
   registerBean<B>()
}
that would be something like
Copy code
fun GenericApplicationContext(configure: GenericApplicationContext.()->Unit) = GenericApplicationContext().apply(configure)