public class MQScanConfigurer extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
实现BeanDefinitionRegistryPostProcessor接口,用于扫描和注册MQ组件。 负责扫描指定包下的AbstractMQ子类,并使用MQDeclareCreator创建和注册MQ组件。
| 构造器和说明 |
|---|
MQScanConfigurer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
处理Bean定义注册表
扫描指定包下的AbstractMQ子类,实例化并注册MQ组件。
|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
处理Bean工厂
当前实现为空,预留用于后续扩展。
|
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
throws org.springframework.beans.BeansException
扫描指定包下的AbstractMQ子类,实例化并注册MQ组件。 设置全局环境配置。
postProcessBeanDefinitionRegistry 在接口中 org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessorbeanDefinitionRegistry - Bean定义注册表org.springframework.beans.BeansException - 如果处理过程中发生异常public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
当前实现为空,预留用于后续扩展。
postProcessBeanFactory 在接口中 org.springframework.beans.factory.config.BeanFactoryPostProcessorbeanFactory - 可配置的Bean工厂org.springframework.beans.BeansException - 如果处理过程中发生异常Copyright © 2025. All rights reserved.