public class ScannedContainerRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.InitializingBean, org.springframework.context.EmbeddedValueResolverAware
A registrar for container which scanned by ContainerConstantScan and ContainerEnumScan.
When application context is ready, it will register a bean definition
of ScannedContainerRegistrar.ScannedContainerConfiguration to spring container for recording scanned container,
then, the scanned container which recorded by ScannedContainerRegistrar.ScannedContainerConfiguration will be registered to Crane4jGlobalConfiguration
when spring invoke InitializingBean.afterPropertiesSet() method of the ScannedContainerRegistrar bean.
ContainerConstantScan,
ContainerEnumScan,
ScannedContainerRegistrar.ScannedContainerConfiguration| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
ScannedContainerRegistrar.ScannedContainerConfiguration |
| 构造器和说明 |
|---|
ScannedContainerRegistrar() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
Load containers which resolve from configuration of annotation metadata.
|
void |
registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata,
@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Register bean definitions as necessary based on the given annotation metadata of
the importing
@Configuration class. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata,
@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
@Configuration class.
Note that BeanDefinitionRegistryPostProcessor types may not be
registered here, due to lifecycle constraints related to @Configuration
class processing.
The default implementation is empty.
registerBeanDefinitions 在接口中 org.springframework.context.annotation.ImportBeanDefinitionRegistrarimportingClassMetadata - annotation metadata of the importing classregistry - current bean definition registrypublic void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanCopyright © 2024. All rights reserved.