Minor cleanup

* Remove reference to @EnableBinding in DefaultBinding
* Docs cleanup
This commit is contained in:
Chanhyeong Cho
2024-06-18 04:20:50 +09:00
committed by GitHub
parent 9e6caef371
commit ae32191310
2 changed files with 4 additions and 3 deletions

View File

@@ -41,7 +41,6 @@ import org.springframework.util.StringUtils;
* @author Myeonghyeon Lee
* @author Soby Chacko
* @author Byungjun You
* @see org.springframework.cloud.stream.annotation.EnableBinding
*/
@JsonPropertyOrder({ "bindingName", "name", "group", "pausable", "state" })

View File

@@ -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>> {