BeanSupplierContext

Limit access to ref() and provider() to bean supplier lambdas.

Since

5.2

Constructors

Link copied to clipboard
constructor(context: GenericApplicationContext)

Functions

Link copied to clipboard
inline fun <T : Any> provider(): ObjectProvider<T>

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

Link copied to clipboard
inline fun <T : Any> ref(name: String? = null): T

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").