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

	<channel id="input"/>

	<channel id="output">
		<queue capacity="50"/>
	</channel>

	<transformer id="pojoTransformer" input-channel="input" ref="testBean" method="upperCase" output-channel="output">
		<request-handler-advice-chain>
			<beans:bean class="org.springframework.integration.transformer.TransformerContextTests$FooAdvice" />
		</request-handler-advice-chain>
	</transformer>

	<beans:bean id="testBean" class="org.springframework.integration.transformer.TestBean"/>

	<transformer input-channel="direct" output-channel="output">
		<beans:bean class="org.springframework.integration.transformer.TransformerContextTests$Bar"/>
	</transformer>

	<transformer input-channel="directRef" output-channel="output" ref="trans" method="handleMessage"
				 requires-reply="false"/>

	<beans:bean id="trans" class="org.springframework.integration.transformer.TransformerContextTests$Bar"/>

</beans:beans>
