public class DubboConfigEarlyRegistrationPostProcessor extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.core.PriorityOrdered
Dubbo Config Bean will be added into ConfigManager on the bean initialization
life cycle through CommonAnnotationBeanPostProcessor executing the callback of
@PostConstruct. However, the instantiation and initialization of
Dubbo Config Bean could be too early before CommonAnnotationBeanPostProcessor, e.g,
execution, thus it's required to register the DubboConfigEarlyInitializationPostProcessor instance as a BeanPostProcessor into
the BeanFatory using BeanDefinitionRegistryPostProcessor as early as
possible.DubboConfigEarlyInitializationPostProcessor| Constructor and Description |
|---|
DubboConfigEarlyRegistrationPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
public static final String BEAN_NAME
public DubboConfigEarlyRegistrationPostProcessor()
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
throws org.springframework.beans.BeansException
postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.