<?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"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:script="http://www.springframework.org/schema/integration/scripting"
	xsi:schemaLocation="http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/scripting https://www.springframework.org/schema/integration/scripting/spring-integration-scripting.xsd">

	<service-activator input-channel="referencedScriptInput">
		<script:script
				lang="python"
				location="org/springframework/integration/scripting/config/jsr223/Jsr223ServiceActivatorTests.py"
				variables="foo2=#{'foo2'}, date2-ref=date">
			<script:variable name="foo" value="foo"/>
			<script:variable name="bar" value="bar"/>
			<script:variable name="date" ref="date"/>
		</script:script>
	</service-activator>


	<service-activator input-channel="withScriptVariableGenerator">
		<script:script lang="ruby" location="org/springframework/integration/scripting/config/jsr223/Jsr223ServiceActivatorTests.rb"
					   script-variable-generator="scriptVarSource"/>
	</service-activator>



	<beans:bean id="scriptVarSource"
		class="org.springframework.integration.scripting.config.jsr223.Jsr223ServiceActivatorTests$SampleScriptVariableSource"/>

	<service-activator input-channel="inlineScriptInput">
		<script:script lang="ruby" variables="foo=#{'FOO'}, date-ref=date">
			<![CDATA[
				"inline-#{payload} - #{foo} :#{date}"
			]]>
		</script:script>
	</service-activator>

	<beans:bean id="date" class="java.util.Date" scope="prototype">
		<aop:scoped-proxy/>
	</beans:bean>

</beans:beans>
