spring-framework / org.springframework.context.annotation / AnnotatedBeanDefinitionReader / <init>

<init>

AnnotatedBeanDefinitionReader(registry: BeanDefinitionRegistry)

Create a new AnnotatedBeanDefinitionReader for the given registry. If the registry is EnvironmentCapable, e.g. is an ApplicationContext, the Environment will be inherited, otherwise a new StandardEnvironment will be created and used.

Parameters

registry - the BeanFactory to load bean definitions into, in the form of a BeanDefinitionRegistry

See Also
#AnnotatedBeanDefinitionReader(BeanDefinitionRegistry, Environment)#setEnvironment(Environment)

AnnotatedBeanDefinitionReader(registry: BeanDefinitionRegistry, environment: Environment)

Create a new AnnotatedBeanDefinitionReader for the given registry and using the given Environment.

Parameters

registry - the BeanFactory to load bean definitions into, in the form of a BeanDefinitionRegistry

environment - the Environment to use when evaluating bean definition profiles.

Since
3.1