繁体   English   中英

Spring-integration DSL:如何以编程方式获得集成流的默认通道?

[英]Spring-integration DSL : how to get programmatically the default channel of a integration flow?

@Bean
public IntegrationFlow flow(){
    return f->f
            .handle(m ->{System.out.println(m);throw  new RuntimeException("probleme");});

}

鉴于此流程,我如何以编程方式获取默认通道(“flow.input”)?

@Autowired
@Qualifier("flow.input")
private MessageChannel flowInputChannel;

要么

MessageChannel flowInputChannel = applicationContext.getBean("flow.input", MessageChannel.class);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM