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());
        }

    }
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());
        }

    }
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 ( ) ) ; } }
注入Registry
@param beanFactory bean工厂
@throws Exception
注入Registry