spring-framework / org.springframework.context.support / BeanDefinitionDsl / provider

provider

inline fun <reified T : Any> provider(): ObjectProvider<T>

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

Since
5.1.1

See Also

org.springframework.beans.factory.BeanFactory.getBeanProvider