code: private void registerRegistry(DefaultListableBeanFactory beanFactory) throws Exception {
          if (CollectionUtil.isEmpty(eagleConfig.getRegistry())) {
              throw new EagleFrameException("eagle.registry not config");
          }
          for (RegistryConfig config : eagleConfig.getRegistry()) {
              String id = config.getId();
              id = Strings.isNullOrEmpty(id) ? config.getName() : config.getId();
              BeanDefinitionBuilder beanBuilder = generateBuilder(config, RegistryBean.class);
              beanFactory.registerBeanDefinition(generateId(id, beanBuilder, beanFactory), beanBuilder.getBeanDefinition());
          }
  
      }
docs: 注入Registry
  @param beanFactory bean工厂
  @throws Exception