<?xml version="1.0" encoding="UTF-8"?>
<beans:beans
        xmlns="http://www.springframework.org/schema/integration"
        xmlns:beans="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:twitter="http://www.springframework.org/schema/integration/twitter"
        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/twitter https://www.springframework.org/schema/integration/twitter/spring-integration-social-twitter.xsd">

	<beans:bean id="twitter" class="org.springframework.social.twitter.api.impl.TwitterTemplate">
		<beans:constructor-arg name="clientToken" value="myDummyClientToken"/>
	</beans:bean>

	<channel id="inbound_mentions"/>

	<channel id="inputChannel"/>

	<twitter:dm-outbound-channel-adapter id="dmAdapter" order="23"
										 twitter-template="twitter"
								         channel="inputChannel"/>

	<twitter:outbound-channel-adapter twitter-template="twitter" channel="inputChannel" />

	<twitter:dm-outbound-channel-adapter id="dmAdvised" order="23"
										 twitter-template="twitter"
								         channel="inputChannel">
		<twitter:request-handler-advice-chain>
			<beans:bean class="org.springframework.integration.twitter.config.TestSendingMessageHandlerParserTests$FooAdvice" />
		</twitter:request-handler-advice-chain>
	</twitter:dm-outbound-channel-adapter>

	<twitter:outbound-channel-adapter id="advised" twitter-template="twitter" channel="inputChannel">
		<twitter:request-handler-advice-chain>
			<beans:bean class="org.springframework.integration.twitter.config.TestSendingMessageHandlerParserTests$FooAdvice" />
		</twitter:request-handler-advice-chain>
	</twitter:outbound-channel-adapter>

</beans:beans>


