java.lang.Object | |
↳ | org.springframework.context.annotation.AnnotatedBeanDefinitionReader |
Convenient adapter for programmatic registration of annotated bean classes.
This is an alternative to ClassPathBeanDefinitionScanner
, applying
the same resolution of annotations but for explicitly registered classes only.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
AnnotatedBeanDefinitionReader for the given bean factory. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the BeanDefinitionRegistry that this scanner operates on.
| |||||||||||
Set the BeanNameGenerator to use for detected bean classes.
| |||||||||||
Set the Environment to use when evaluating whether
@Profile -annotated component classes should be registered. | |||||||||||
Set the ScopeMetadataResolver to use for detected bean classes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new AnnotatedBeanDefinitionReader
for the given bean factory.
registry | the BeanFactory to load bean definitions into,
in the form of a BeanDefinitionRegistry
|
---|
Return the BeanDefinitionRegistry that this scanner operates on.
Set the BeanNameGenerator to use for detected bean classes.
The default is a AnnotationBeanNameGenerator
.
Set the Environment to use when evaluating whether
@Profile
-annotated component classes should be registered.
The default is a DefaultEnvironment
.
Set the ScopeMetadataResolver to use for detected bean classes.
The default is an AnnotationScopeMetadataResolver
.