I’ve done a very similar thing to the above reifie...
# getting-started
r
I’ve done a very similar thing to the above reified generic usage for a Spring extension method:
Copy code
inline fun <reified T> ApplicationContext.getBean() : T = this.getBean(T::class.java)
Then you can
applicationContext.getBean<Foo>()