spring-framework / org.springframework.beans.factory.support / AbstractBeanDefinitionReader / setEnvironment

setEnvironment

open fun setEnvironment(environment: Environment): Unit

Set the Environment to use when reading bean definitions. Most often used for evaluating profile information to determine which bean definitions should be read and which should be omitted.