Commit 8fac1359 authored by Oleg Zhurakousky's avatar Oleg Zhurakousky
Browse files

Quick fix in the logic to determine 'composed' flag

parent fde045a7
Showing with 4 additions and 2 deletions
+4 -2
......@@ -449,9 +449,11 @@ public class BeanFactoryAwareFunctionRegistry
FunctionInvocationWrapper(Object target, Type functionType, String functionDefinition, String... acceptedOutputMimeTypes) {
this.target = target;
this.composed = !target.getClass().getName().contains("$$EnhancerBySpringCGLIB")
this.composed = target instanceof RoutingFunction ||
(!target.getClass().getName().contains("$$EnhancerBySpringCGLIB")
&& !AopUtils.isAopProxy(target) && !AopUtils.isJdkDynamicProxy(target)
&& target.getClass().getDeclaredFields().length > 1;
&& target.getClass().getDeclaredFields().length > 1
&& target.getClass().isSynthetic());
this.functionType = functionType;
this.acceptedOutputMimeTypes = acceptedOutputMimeTypes;
this.functionDefinition = functionDefinition;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment