https://kotlinlang.org logo
#spring
Title
o

orangy

01/10/2017, 8:04 PM
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)