Added namespace support for FileToStringTransformer and FileToByteArrayTransformer.

This commit is contained in:
Mark Fisher
2008-09-26 18:27:22 +00:00
parent 959b906f4e
commit f2b7353165
12 changed files with 173 additions and 27 deletions

View File

@@ -17,15 +17,7 @@
<file:inbound-channel-adapter id="filesIn"
directory="file:${java.io.tmpdir}/spring-integration-samples/input"/>
<bean class="org.springframework.integration.transformer.TransformerEndpoint">
<constructor-arg>
<bean class="org.springframework.integration.file.transformer.FileToByteArrayTransformer">
<property name="deleteFileAfterTransformation" value="true"/>
</bean>
</constructor-arg>
<property name="inputChannel" ref="filesIn"/>
<property name="outputChannel" ref="bytes"/>
</bean>
<file:file-to-bytes-transformer input-channel="filesIn" output-channel="bytes" delete-files="true"/>
<integration:channel id="bytes"/>

View File

@@ -18,15 +18,7 @@
directory="file:${java.io.tmpdir}/spring-integration-samples/input"
filename-pattern="[a-z]+.txt"/>
<bean class="org.springframework.integration.transformer.TransformerEndpoint">
<constructor-arg>
<bean class="org.springframework.integration.file.transformer.FileToStringTransformer">
<property name="deleteFileAfterTransformation" value="true"/>
</bean>
</constructor-arg>
<property name="inputChannel" ref="filesIn"/>
<property name="outputChannel" ref="strings"/>
</bean>
<file:file-to-string-transformer input-channel="filesIn" output-channel="strings"/>
<integration:channel id="strings"/>