Skip to content

Commit

Permalink
refactor: modify modulemodel obtain from beanfactory
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzg-coder committed Oct 11, 2023
1 parent 8bdcaf6 commit 730fe52
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
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;
Expand All @@ -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
Expand All @@ -87,6 +82,7 @@ private void init() {
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();
Expand Down

0 comments on commit 730fe52

Please sign in to comment.