<?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="pollableFileSource" class="org.springframework.integration.file.FileReadingMessageSource"
		  p:directory="#{T(org.springframework.integration.file.FileReadingMessageSourcePersistentFilterIntegrationTests).inputDir}"
		  p:filter-ref="persistentFilter"/>

	<!-- persistent filter -->
	<bean id="persistentFilter" class="org.springframework.integration.file.filters.FileSystemPersistentAcceptOnceFileListFilter">
		<constructor-arg ref="ppms" />
		<constructor-arg value="frmsPersistTest" />
	</bean>

	<bean id="ppms" class="org.springframework.integration.metadata.PropertiesPersistingMetadataStore">
		<property name="baseDirectory"
			value="#{T(org.springframework.integration.file.FileReadingMessageSourcePersistentFilterIntegrationTests).inputDir.path}"/>
	</bean>

</beans>
