SupplierContextDsl

Context available from the bean instance supplier designed to give access to bean dependencies.

Constructors

Link copied to clipboard
constructor(context: BeanRegistry.SupplierContext)

Functions

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

Return the bean instance that uniquely matches the given object type, and potentially the name if provided, if any.

Link copied to clipboard
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.