Package org.springframework.context.support

Types

BeanDefinitionDsl
Link copied to clipboard

Class implementing functional bean definition Kotlin DSL.

Functions

beans
Link copied to clipboard
fun beans(init: BeanDefinitionDsl.() -> Unit): BeanDefinitionDsl

Functional bean definition Kotlin DSL.

GenericApplicationContext
Link copied to clipboard
fun GenericApplicationContext(configure: GenericApplicationContext.() -> Unit): GenericApplicationContext

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

registerBean
Link copied to clipboard
inline fun <T : Any> GenericApplicationContext.registerBean(vararg customizers: BeanDefinitionCustomizer)

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

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

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

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

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

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

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