Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
* Remove reference to @EnableBinding in DefaultBinding
* Docs cleanup
  • Loading branch information
chanhyeong committed Jun 17, 2024
1 parent 9e6caef commit ae32191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* @author Myeonghyeon Lee
* @author Soby Chacko
* @author Byungjun You
* @see org.springframework.cloud.stream.annotation.EnableBinding
*/

@JsonPropertyOrder({ "bindingName", "name", "group", "pausable", "state" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,11 @@ public class FunctionSampleSpringIntegrationApplication {
@Bean
public IntegrationFlow uppercaseFlow() {
return IntegrationFlows.from(MessageFunction.class, "uppercase")
return IntegrationFlow.from(MessageFunction.class, spec -> spec.beanName("uppercase"))
.<String, String>transform(String::toUpperCase)
.logAndReply(LoggingHandler.Level.WARN);
.log(LoggingHandler.Level.WARN)
.bridge()
.get();
}
public interface MessageFunction extends Function<Message<String>, Message<String>> {
Expand Down

0 comments on commit ae32191

Please sign in to comment.