introspect bean definition for Flux types

non-Flux Functions wrapped during auto-config
This commit is contained in:
markfisher
2017-03-01 18:59:45 -05:00
parent 19fd056a5e
commit 1dc0489c23
3 changed files with 27 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ public abstract class FunctionUtils {
}
String[] types = getParameterizedTypeNames(function, Function.class);
if (ObjectUtils.isEmpty(types) || types.length != 2) {
return true;
return false;
}
return (types[0].startsWith(FLUX_CLASS_NAME) && types[1].startsWith(FLUX_CLASS_NAME));
}