beanProvider

inline fun <T : Any> beanProvider(): ObjectProvider<T>

Return a provider for the specified bean, allowing for lazy on-demand retrieval of instances, including availability and uniqueness options.

Return

a corresponding provider handle

Parameters

T

type the bean must match; can be an interface or superclass