Package org.springframework.context.support

Types

Link copied to clipboard
open class BeanDefinitionDsl : ApplicationContextInitializer<GenericApplicationContext>

Class implementing functional bean definition Kotlin DSL.

Functions

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

Functional bean definition Kotlin DSL.

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

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

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.