GH-623 Fix applicatioin initialization when defaulting function name
IN the event when we have a single supplier, and SupplierExporter provides 'origin|' as its name we attempt to auto-discover the other function name which framework defaults to 'functionRouter' when it should not. This fixes it. Resolves #623
This commit is contained in:
@@ -245,7 +245,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
|||||||
}
|
}
|
||||||
|
|
||||||
String determinImpliedDefinition(Set<String> fNames, String originalDefinition) {
|
String determinImpliedDefinition(Set<String> fNames, String originalDefinition) {
|
||||||
if (fNames.size() == 2) {
|
if (!fNames.contains(RoutingFunction.FUNCTION_NAME) && fNames.size() == 2) {
|
||||||
Iterator<String> iter = fNames.iterator();
|
Iterator<String> iter = fNames.iterator();
|
||||||
String n1 = iter.next();
|
String n1 = iter.next();
|
||||||
String n2 = iter.next();
|
String n2 = iter.next();
|
||||||
|
|||||||
Reference in New Issue
Block a user