Fix DSL for inner bean names generation (#8639)

The `IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec()`
uses a wrong `generateBeanName()` for component to register making the
provided `id` as a prefix

* Use `generateBeanName(Object instance, String prefix, @Nullable String fallbackId, boolean useFlowIdAsPrefix)`
instead to properly "fallback" to the provided name

**Cherry-pick to `6.1.x`**
This commit is contained in:
Artem Bilan
2023-06-08 09:50:32 -04:00
committed by GitHub
parent 79408d7b2c
commit 8b8a7a4c16
2 changed files with 18 additions and 12 deletions

View File

@@ -356,7 +356,7 @@ public class IntegrationFlowBeanPostProcessor
.filter(component -> noBeanPresentForComponent(component.getKey(), beanName))
.forEach(component ->
registerComponent(component.getKey(),
generateBeanName(component.getKey(), component.getValue())));
generateBeanName(component.getKey(), beanName, component.getValue(), false)));
}
}