refactor: modify modulemodel obtain from beanfactory (#13181)

This commit is contained in:
lazy 2023-10-13 03:59:11 -05:00 committed by GitHub
parent 8bdcaf6865
commit 3e50bdd16f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -42,8 +42,6 @@ import org.springframework.beans.FatalBeanException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import java.util.List;
@ -68,9 +66,6 @@ public class DubboConfigBeanInitializer implements BeanFactoryAware, Initializin
private ReferenceBeanManager referenceBeanManager;
private ConfigManager configManager;
@Autowired
@Qualifier("org.apache.dubbo.rpc.model.ModuleModel")
private ModuleModel moduleModel;
@Override
@ -87,6 +82,7 @@ public class DubboConfigBeanInitializer implements BeanFactoryAware, Initializin
if (initialized.compareAndSet(false, true)) {
referenceBeanManager = beanFactory.getBean(ReferenceBeanManager.BEAN_NAME, ReferenceBeanManager.class);
configManager = DubboBeanUtils.getConfigManager(beanFactory);
moduleModel = DubboBeanUtils.getModuleModel(beanFactory);
try {
prepareDubboConfigBeans();
referenceBeanManager.prepareReferenceBeans();