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 8f4085c420
commit e8441a3787

View File

@@ -453,7 +453,8 @@ 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);
}
}