GH-2347 Fix explicit binding creation when single function is present

Resolves #2347
This commit is contained in:
Oleg Zhurakousky
2022-06-10 18:50:22 +02:00
parent 0071c8e802
commit 5a007a3833

View File

@@ -451,7 +451,7 @@ public class FunctionConfiguration {
}
if (StringUtils.hasText(functionDefinition) && !shouldNotProcess) {
FunctionInvocationWrapper function = functionCatalog.lookup(functionDefinition);
if (function != null && !function.isSupplier()) {
if (function != null && !function.isSupplier() && functionDefinition.equals(function.getFunctionDefinition())) {
this.bindFunctionToDestinations(bindableProxyFactory, functionDefinition, applicationContext.getEnvironment());
}
}