Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ming zheng
Spring Cloud Function
Commits
8fac1359
Commit
8fac1359
authored
5 years ago
by
Oleg Zhurakousky
Browse files
Options
Download
Email Patches
Plain Diff
Quick fix in the logic to determine 'composed' flag
parent
fde045a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/BeanFactoryAwareFunctionRegistry.java
+4
-2
...ion/context/catalog/BeanFactoryAwareFunctionRegistry.java
with
4 additions
and
2 deletions
+4
-2
spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/BeanFactoryAwareFunctionRegistry.java
+
4
-
2
View file @
8fac1359
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment