在网上找不到任何东西,任何人都知道如何按照以下 spring-camel bean 设置在蓝图中执行等效操作:-
<!-- define our filter as a plain spring bean -->
<bean id="csvAntFilter" class="org.apache.camel.component.file.AntPathMatcherGenericFileFilter">
<property name="includes" value="*.csv"/>
</bean>
<route>
<from uri="file://inbox?filter=#csvAntFilter"/>
<to uri="bean:processInbox"/>
</route>
我的理解(对不起,骆驼仍然相当有限)是 AntPathMatcher 是骆驼弹簧的一部分,而不是骆驼蓝图,所以如果我想使用蓝图,就不能这样使用它。
或者有没有更好的方法在 blueprint 中做到这一点?
编辑 我发现存在 camel-core-xml 但不确定如何在其中使用 AntPathMatcher。