Added temporary checks for Kafka stream types

This commit is contained in:
Oleg Zhurakousky
2019-10-23 21:48:40 +02:00
parent eab50ca751
commit 0d536fae71
2 changed files with 10 additions and 0 deletions

View File

@@ -278,6 +278,13 @@ public class BeanFactoryAwareFunctionRegistry
+ "Function available in catalog are: " + this.getNames(null));
return null;
}
else {
Type functionType = FunctionContextUtils.findType(applicationContext.getBeanFactory(), name);
if (functionType != null && functionType.toString().contains("org.apache.kafka.streams.")) {
logger.debug("Kafka Streams function '" + definition + "' is not supported by spring-cloud-function.");
return null;
}
}
composedNameBuilder.append(prefix);
composedNameBuilder.append(name);

View File

@@ -55,6 +55,9 @@ public abstract class FunctionContextUtils {
actualName = name;
}
}
if (definition == null) {
return null;
}
Object source = definition.getSource();