INT-4283: Restore Registration of Missing Comps

JIRA: https://jira.spring.io/browse/INT-4282

Unrecognized components were not added to `targetIntegrationComponents` causing
problems such as messge-driven components not starting.
This commit is contained in:
Gary Russell
2017-05-29 17:01:51 -04:00
committed by Artem Bilan
parent bb2ee967f2
commit d90d4e4d8f
2 changed files with 57 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ import org.springframework.util.StringUtils;
* if necessary.
*
* @author Artem Bilan
* @author Gary Russell
* @since 5.0
*/
public class IntegrationFlowBeanPostProcessor implements BeanPostProcessor, BeanFactoryAware,
@@ -252,8 +253,9 @@ public class IntegrationFlowBeanPostProcessor implements BeanPostProcessor, Bean
targetIntegrationComponents.put(component, gatewayId);
}
else {
String generateBeanName = generateBeanName(component, entry.getValue());
registerComponent(component, generateBeanName, flowBeanName, registerSingleton);
String generatedBeanName = generateBeanName(component, entry.getValue());
registerComponent(component, generatedBeanName, flowBeanName, registerSingleton);
targetIntegrationComponents.put(component, generatedBeanName);
}
}
else {