Limit access to ref() and provider() to bean supplier lambdas.
ref()
provider()
5.2
Return a provider for the specified bean, allowing for lazy on-demand retrieval of instances, including availability and uniqueness options.
Get a reference to the bean by type or type + name with the syntax ref<Foo>() or ref<Foo>("foo"). When leveraging Kotlin type inference it could be as short as ref() or ref("foo").
ref<Foo>()
ref<Foo>("foo")
ref("foo")