<?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:int="http://www.springframework.org/schema/integration"
	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">

	<int:inbound-channel-adapter channel="nullChannel" auto-startup="false">
		<bean class="org.springframework.integration.endpoint.PollerAdviceTests.Source" />
		<int:poller trigger="compoundTrigger">
			<int:advice-chain>
				<bean class="org.springframework.integration.aop.CompoundTriggerAdvice">
					<constructor-arg ref="compoundTrigger"/>
					<constructor-arg ref="secondary"/>
				</bean>
				<ref bean="otherAdvice" />
			</int:advice-chain>
		</int:poller>
	</int:inbound-channel-adapter>

	<bean id="compoundTrigger" class="org.springframework.integration.util.CompoundTrigger">
		<constructor-arg ref="primary" />
	</bean>

	<bean id="primary" class="org.springframework.scheduling.support.PeriodicTrigger">
		<constructor-arg value="10" />
	</bean>

	<bean id="secondary" class="org.springframework.scheduling.support.PeriodicTrigger">
		<constructor-arg value="10" />
	</bean>

	<bean id="otherAdvice" class = "org.springframework.integration.endpoint.PollerAdviceTests.OtherAdvice" />

</beans>
