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

	<context:property-placeholder/>

	<inbound-channel-adapter id="inputDirPoller"
		directory="${java.io.tmpdir}/FileInboundChannelAdapterWithQueueSizeTests"
		filter="filter"
		queue-size="2"
		auto-startup="false">
		<integration:poller fixed-rate="1000" />
	</inbound-channel-adapter>

	<beans:bean id="filter" class="org.springframework.integration.file.filters.CompositeFileListFilter">
		<beans:constructor-arg>
			<beans:list />
		</beans:constructor-arg>
	</beans:bean>

	<beans:bean id="testComparator"
		class="org.springframework.integration.file.config.FileInboundChannelAdapterParserTests$TestComparator" />

 	<!-- test second leg of if test in HeadDS.setFilter - no CompositeFLF -->
	<inbound-channel-adapter id="inputDirPollerSimpleFilter"
		directory="${java.io.tmpdir}/FileInboundChannelAdapterWithQueueSizeTests"
		filter="acceptAll"
		ignore-hidden="false"
		queue-size="2"
		auto-startup="false">
		<integration:poller fixed-rate="1000" />
	</inbound-channel-adapter>

	<beans:bean id="acceptAll" class="org.springframework.integration.file.filters.AcceptAllFileListFilter" />

</beans:beans>
