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

BeanDefinitionContext

inner class BeanDefinitionContext

Provide read access to some application context facilities.

Constructors

<init>

BeanDefinitionContext(context: GenericApplicationContext)

Create a new bean definition context.

Properties

env

val env: ConfigurableEnvironment

Get the ConfigurableEnvironment associated to the underlying GenericApplicationContext.

Functions

ref

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