getBean

inline fun <T> BeanLocator.getBean(): T

Extension for BeanLocator.getBean providing a getBean<Foo>() variant.

Return

The bean instance

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The bean type


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

Extension for BeanLocator.getBean providing a getBean<Foo>(name) variant.

Return

The bean instance

Author

Luiz Picanço

Since

2.1.2

Parameters

T

The bean type

name

The bean name