getBean

inline fun <T : Any> BeanFactory.getBean(): T

Extension for BeanFactory.getBean providing a getBean<Foo>() variant. This extension is not subject to type erasure and retains actual generic type arguments.

Author

Sebastien Deleuze

Since

5.0


inline fun <T : Any> BeanFactory.getBean(name: String): T

Extension for BeanFactory.getBean providing a getBean<Foo>("foo") variant. Like the original Java method, this extension is subject to type erasure.

Author

Sebastien Deleuze

Since

5.0

See also

(String, Class)


inline fun <T : Any> BeanFactory.getBean(vararg args: Any): T

Extension for BeanFactory.getBean providing a getBean<Foo>(arg1, arg2) variant. This extension is not subject to type erasure and retains actual generic type arguments.

Author

Sebastien Deleuze

Since

5.0

See also

(Class, Object...)