<?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:gateway id="gateway" service-interface="org.springframework.integration.gateway.GatewayWithPayloadExpressionTests$SampleGateway">
		<int:method name="send1" request-channel="input" payload-expression="args[0] + 'bar'"/>
		<int:method name="send2" request-channel="input" payload-expression="@testBean.sum(args[0])"/>
		<int:method name="send3" request-channel="input" payload-expression="method.name"/>
	</int:gateway>

	<int:gateway id="annotatedGateway"
				 service-interface="org.springframework.integration.gateway.GatewayWithPayloadExpressionTests$SampleAnnotatedGateway"
				 default-request-channel="input"/>

	<int:channel id="input">
		<int:queue/>
	</int:channel>

	<bean id="testBean" class="org.springframework.integration.gateway.GatewayWithPayloadExpressionTests$TestBean"/>

</beans>
