GH-649 Ignire factory bean names during discovery of a function

Resolves #649
This commit is contained in:
Oleg Zhurakousky
2021-02-15 17:53:12 +01:00
parent 9b62f6e3f8
commit 73bd787c8d
2 changed files with 6 additions and 5 deletions

View File

@@ -70,10 +70,10 @@ public final class FunctionWebUtils {
Map<String, Object> attributes, String path, String[] acceptContentTypes) {
path = path.startsWith("/") ? path.substring(1) : path;
if (method.equals(HttpMethod.GET)) {
FunctionInvocationWrapper supplier = functionCatalog.lookup(path, acceptContentTypes);
if (supplier != null) {
attributes.put(WebRequestConstants.SUPPLIER, supplier);
return supplier;
FunctionInvocationWrapper function = functionCatalog.lookup(path, acceptContentTypes);
if (function != null && function.isSupplier()) {
attributes.put(WebRequestConstants.SUPPLIER, function);
return function;
}
}