Class AnnotatedBeanDefinitionReader
- java.lang.Object
- org.springframework.context.annotation.AnnotatedBeanDefinitionReader
public class AnnotatedBeanDefinitionReader extends Object
Convenient adapter for programmatic registration of annotated bean classes. This is an alternative toClassPathBeanDefinitionScanner
, applying the same resolution of annotations but for explicitly registered classes only.- Since:
- 3.0
- Author:
- Juergen Hoeller, Chris Beams, Sam Brannen, Phillip Webb
- See Also:
AnnotationConfigApplicationContext.register(java.lang.Class<?>...)
Constructor Summary
Constructors Constructor Description AnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry)
Create a newAnnotatedBeanDefinitionReader
for the given registry.AnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry, Environment environment)