spring-boot-starter-eagle/src/main/java/org/springframe/boot/eagle/EagleBeanFactoryPostProcessor.java
private void registryProtocol(DefaultListableBeanFactory beanFactory) throws Exception {
        if (CollectionUtil.isEmpty(eagleConfig.getProtocol())) {
            throw new EagleFrameException("eagle.protocol not config");
        }
        for (ProtocolConfig config : eagleConfig.getProtocol()) {
            String id = config.getId();
            id = Strings.isNullOrEmpty(id) ? config.getName() : config.getId();
            BeanDefinitionBuilder beanBuilder = generateBuilder(config, ProtocolBean.class);
            beanFactory.registerBeanDefinition(generateId(id, beanBuilder, beanFactory), beanBuilder.getBeanDefinition());
        }
    }
private void registryProtocol(DefaultListableBeanFactory beanFactory) throws Exception {
        if (CollectionUtil.isEmpty(eagleConfig.getProtocol())) {
            throw new EagleFrameException("eagle.protocol not config");
        }
        for (ProtocolConfig config : eagleConfig.getProtocol()) {
            String id = config.getId();
            id = Strings.isNullOrEmpty(id) ? config.getName() : config.getId();
            BeanDefinitionBuilder beanBuilder = generateBuilder(config, ProtocolBean.class);
            beanFactory.registerBeanDefinition(generateId(id, beanBuilder, beanFactory), beanBuilder.getBeanDefinition());
        }
    }
注入Protocol
@param beanFactory bean工厂
@throws Exception