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:
@@ -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)));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user