robfletcher
inline fun <reified T> ApplicationContext.getBean() : T = this.getBean(T::class.java)
applicationContext.getBean<Foo>()