到目前为止,据我所知,Outbound Channel Adapter 还没有注解支持。
<int:outbound-channel-adapter channel="channel" method="handle">
<beans:bean class="org.Foo"/>
它缺失的原因之一可能是功能类似于 Service Activator 提供的功能。
很想知道,是否有计划在出站 channel 适配器范围内同步 XML 和 Java 配置,作为处理管道的显式终止点?
最佳答案
是的,您可以简单地在返回void
的方法上使用@ServiceActivator
;对于这种情况,我们认为不需要单独的注释。
关于spring-integration - 出站 channel 适配器 java 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48477970/