spring-framework / org.springframework.context.annotation / AnnotatedBeanDefinitionReader / setEnvironment

setEnvironment

open fun setEnvironment(environment: Environment): Unit

Set the Environment to use when evaluating whether Conditional-annotated component classes should be registered.

The default is a StandardEnvironment.

See Also
#registerBean(Class, String, Class...)