private void registerComponent(Object component, String beanName) { registerComponent(component, beanName, null); }
private void processIntegrationComponentSpec(String beanName, IntegrationComponentSpec<?, ?> bean) { Object target = bean.get(); invokeBeanInitializationHooks(beanName, target); if (bean instanceof ComponentsRegistration) { Map<Object, String> componentsToRegister = ((ComponentsRegistration) bean).getComponentsToRegister(); if (!CollectionUtils.isEmpty(componentsToRegister)) { componentsToRegister.entrySet() .stream() .filter(component -> noBeanPresentForComponent(component.getKey(), beanName)) .forEach(component -> registerComponent(component.getKey(), generateBeanName(component.getKey(), component.getValue()))); } } }
registerComponent(messageHandler, handlerBeanName, flowBeanName); this.beanFactory.registerAlias(handlerBeanName, id + IntegrationConfigUtils.HANDLER_ALIAS_SUFFIX); registerComponent(endpoint, id, flowBeanName); targetIntegrationComponents.put(endpoint, id); registerComponent(component, channelBeanName, flowBeanName); targetIntegrationComponents.put(component, channelBeanName); if (!this.beanFactory.containsBean(channelBeanName)) { DirectChannel directChannel = new DirectChannel(); registerComponent(directChannel, channelBeanName, flowBeanName); targetIntegrationComponents.put(directChannel, channelBeanName); registerComponent(component, channelBeanName, flowBeanName); targetIntegrationComponents.put(component, channelBeanName); .filter(o -> noBeanPresentForComponent(o.getKey(), flowBeanName)) .forEach(o -> registerComponent(o.getKey(), generateBeanName(o.getKey(), flowNamePrefix, o.getValue(), useFlowIdAsPrefix))); registerComponent(pollingChannelAdapterFactoryBean, id, flowBeanName); targetIntegrationComponents.put(pollingChannelAdapterFactoryBean, id); registerComponent(messageSource, messageSourceId, flowBeanName); : flowNamePrefix + "subFlow" +
private void registerComponent(Object component, String beanName) { registerComponent(component, beanName, null); }
private void processIntegrationComponentSpec(String beanName, IntegrationComponentSpec<?, ?> bean) { Object target = bean.get(); invokeBeanInitializationHooks(beanName, target); if (bean instanceof ComponentsRegistration) { Map<Object, String> componentsToRegister = ((ComponentsRegistration) bean).getComponentsToRegister(); if (!CollectionUtils.isEmpty(componentsToRegister)) { componentsToRegister.entrySet() .stream() .filter(component -> noBeanPresentForComponent(component.getKey(), beanName)) .forEach(component -> registerComponent(component.getKey(), generateBeanName(component.getKey(), component.getValue()))); } } }
registerComponent(messageHandler, handlerBeanName, flowBeanName); this.beanFactory.registerAlias(handlerBeanName, id + IntegrationConfigUtils.HANDLER_ALIAS_SUFFIX); registerComponent(endpoint, id, flowBeanName); targetIntegrationComponents.put(endpoint, id); registerComponent(component, channelBeanName, flowBeanName); targetIntegrationComponents.put(component, channelBeanName); if (!this.beanFactory.containsBean(channelBeanName)) { DirectChannel directChannel = new DirectChannel(); registerComponent(directChannel, channelBeanName, flowBeanName); targetIntegrationComponents.put(directChannel, channelBeanName); registerComponent(component, channelBeanName, flowBeanName); targetIntegrationComponents.put(component, channelBeanName); .filter(o -> noBeanPresentForComponent(o.getKey(), flowBeanName)) .forEach(o -> registerComponent(o.getKey(), generateBeanName(o.getKey(), flowNamePrefix, o.getValue(), useFlowIdAsPrefix))); registerComponent(pollingChannelAdapterFactoryBean, id, flowBeanName); targetIntegrationComponents.put(pollingChannelAdapterFactoryBean, id); registerComponent(messageSource, messageSourceId, flowBeanName); : flowNamePrefix + "subFlow" +