environment

fun environment(condition: ConfigurableEnvironment.() -> Boolean, init: BeanDefinitionDsl.() -> Unit)

Take in account bean definitions enclosed in the provided lambda only when the specified environment-based predicate is true.

Parameters

condition

the predicate to fulfill in order to take in account the inner bean definition block