Permalink
Find file
0a988fd Jan 11, 2017
12 lines (10 sloc) 388 Bytes
package org.springframework.context.annotation
/**
* Extension for [AnnotationConfigApplicationContext] allowing
* `AnnotationConfigApplicationContext { ... }` style initialization.
*
* @author Sebastien Deleuze
* @since 5.0
*/
fun AnnotationConfigApplicationContext(configure: AnnotationConfigApplicationContext.()->Unit) =
AnnotationConfigApplicationContext().apply(configure)