Improved archive loader to work with Java 11

Added tests for deploying multi-input/output apps and jars
Polished logging
This commit is contained in:
Oleg Zhurakousky
2019-08-12 10:09:43 +02:00
parent 3349c3abed
commit b64af80fb1
8 changed files with 342 additions and 17 deletions

View File

@@ -206,6 +206,9 @@ public class BeanFactoryAwareFunctionRegistry
@SuppressWarnings({ "unchecked", "rawtypes" })
private Function<?, ?> compose(Class<?> type, String definition, String... acceptedOutputTypes) {
if (logger.isInfoEnabled()) {
logger.info("Looking up function '" + definition + "' with acceptedOutputTypes: " + Arrays.asList(acceptedOutputTypes));
}
definition = discoverDefaultDefinitionIfNecessary(definition);
if (StringUtils.isEmpty(definition)) {
return null;
@@ -225,6 +228,8 @@ public class BeanFactoryAwareFunctionRegistry
for (String name : names) {
Object function = this.locateFunction(name);
if (function == null) {
logger.warn("!!! Failed to discover function '" + definition + "' in function catalog. "
+ "Function available in catalog are: " + this.getNames(null));
return null;
}
composedNameBuilder.append(prefix);