spring-framework / org.springframework.context.support

Package org.springframework.context.support

Types

BeanDefinitionDsl

open class BeanDefinitionDsl : ApplicationContextInitializer<GenericApplicationContext>

Class implementing functional bean definition Kotlin DSL.

Functions

GenericApplicationContext

fun GenericApplicationContext(configure: GenericApplicationContext.() -> Unit): GenericApplicationContext

Extension for GenericApplicationContext allowing GenericApplicationContext { ... } style initialization.

beans

fun beans(init: BeanDefinitionDsl.() -> Unit): BeanDefinitionDsl

Functional bean definition Kotlin DSL.

registerBean

fun <T : Any> GenericApplicationContext.registerBean(vararg customizers: BeanDefinitionCustomizer): Unit

Extension for GenericApplicationContext.registerBean providing a registerBean<Foo>() variant.

fun <T : Any> GenericApplicationContext.registerBean(beanName: String, vararg customizers: BeanDefinitionCustomizer): Unit

Extension for GenericApplicationContext.registerBean providing a registerBean<Foo>("foo") variant.

fun <T : Any> GenericApplicationContext.registerBean(vararg customizers: BeanDefinitionCustomizer, function: (ApplicationContext) -> T): Unit

Extension for GenericApplicationContext.registerBean providing a registerBean { Foo() } variant.

fun <T : Any> GenericApplicationContext.registerBean(name: String, vararg customizers: BeanDefinitionCustomizer, function: (ApplicationContext) -> T): Unit

Extension for GenericApplicationContext.registerBean providing a registerBean("foo") { Foo() } variant.