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.
See Also
org.springframework.beans.factory.BeanFactory.getBeanProvider