-
Notifications
You must be signed in to change notification settings - Fork 628
Fix spring-integration sample #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
olegz
commented
Sep 24, 2019
- Added additional proxy checks
- Added discoverFunctionTypeFromClass() method to FunctionTypeUtils
- Added additional proxy checks - Added discoverFunctionTypeFromClass() method to FunctionTypeUtils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just only one concern about <T>
.
To make your build working properly on Travis you need to add this entry into the .travis.yml
:
dist: trusty
public IntegrationFlow uppercaseFlow() { | ||
return IntegrationFlows.from(MessageFunction.class, "uppercase") | ||
.<String, String>transform(String::toUpperCase) | ||
.logAndReply(LoggingHandler.Level.WARN); | ||
} | ||
|
||
public interface MessageFunction extends Function<Message<String>, Message<String>> { | ||
public interface MessageFunction<T> extends Function<Message<String>, Message<String>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this <T>
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason, just wanted to create a deep hierarchy and validate that the new discover
method still finds the function type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, but it must not be as a part of a sample. It is going to confuse end-users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh, i forgot to delete it. Good point
@olegz , I want to share with you another point of view for this problem. Instead of assuming about proxies, how about to perform a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Merging...