<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
			https://www.springframework.org/schema/beans/spring-beans.xsd">

    <!-- under test -->
    <bean id="fileSource1" class="org.springframework.integration.file.FileReadingMessageSource"
          p:directory="file:${java.io.tmpdir}/FileLockingWithMultipleSourcesIntegrationTests"
           p:filter-ref="filter1" p:locker-ref="filter1"/>

    <bean id="fileSource2" class="org.springframework.integration.file.FileReadingMessageSource"
          p:directory="file:${java.io.tmpdir}/FileLockingWithMultipleSourcesIntegrationTests"
           p:filter-ref="filter2" p:locker-ref="filter2"/>

    <bean id="fileSource3" class="org.springframework.integration.file.FileReadingMessageSource"
          p:directory="file:${java.io.tmpdir}/FileLockingWithMultipleSourcesIntegrationTests"
           p:filter-ref="filter1" p:locker-ref="filter1"/>

    <bean id="filter1" class="org.springframework.integration.file.locking.NioFileLocker"/>
    <bean id="filter2" class="org.springframework.integration.file.locking.NioFileLocker"/>

</beans>
