Add BeanRegistrarDsl.register
See gh-34557
This commit is contained in:
@@ -334,6 +334,15 @@ open class BeanRegistrarDsl(private val init: BeanRegistrarDsl.() -> Unit): Bean
|
||||
return registry.registerBean(T::class.java, customizer)
|
||||
}
|
||||
|
||||
/**
|
||||
* Register beans using the given [BeanRegistrar].
|
||||
* @param registrar the bean registrar that will be called to register
|
||||
* additional beans
|
||||
*/
|
||||
fun register(registrar: BeanRegistrar) {
|
||||
return registry.register(registrar)
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply the nested block if the given profile expression matches the
|
||||
* active profiles.
|
||||
|
||||
Reference in New Issue
Block a user