Added namespace support for FileToStringTransformer and FileToByteArrayTransformer.
This commit is contained in:
@@ -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"/>
|
||||
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user