<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:util="http://www.springframework.org/schema/util"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xsi:schemaLocation="
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
	   	http://www.springframework.org/schema/gemfire https://www.springframework.org/schema/gemfire/spring-gemfire.xsd
		http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd
">

	<util:properties id="gemfireProperties">
		<prop key="name">GemfireFunctionProxyFactoryBeanTest</prop>
		<prop key="statistic-sampling-enabled">false</prop>
		<prop key="log-level">error</prop>
	</util:properties>

	<gfe:cache properties-ref="gemfireProperties"/>

	<gfe:replicated-region id="someRegion"/>

	<bean id="functionTemplate"
		  class="org.springframework.data.gemfire.function.GemfireFunctionTemplate">
		<constructor-arg ref="gemfire-cache"/>
		<property name="timeout" value="1000"/>
	</bean>

	<bean id="foo" class="org.springframework.data.gemfire.function.GemfireFunctionProxyFactoryBean">
		<constructor-arg value="org.springframework.data.gemfire.function.foo.IFoo"/>
		<constructor-arg value="org.springframework.data.gemfire.function.foo.Foo"/>
		<constructor-arg ref="functionTemplate"/>
		<property name="regionName" value="someRegion"/>
	</bean>

</beans>
