【发布时间】:2017-10-29 13:49:30
【问题描述】:
我正在使用文件出站适配器读取文件并将它们传递给使用 spring 集成 DSL 的一系列转换器,并注意到这些转换器无法访问文件名。 如何在下面传递初始文件名:
IntegrationFlows.from(Files
.inboundAdapter(new File(this.props.getIndir()))
.autoCreateDirectory(true)
.preventDuplicates(true)
.patternFilter(this.props.getFilePattern()),
e -> e.poller(Pollers.fixedDelay(5000L)))
...
.transform(Transformers.converter(fileConverter))
....
【问题讨论】: