<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:p="http://www.springframework.org/schema/p"
	   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 http://www.springframework.org/schema/beans/spring-beans.xsd
	   	http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
" default-lazy-init="true">

	<util:properties id="gemfireProperties">
		<prop key="name">LocalNamespaceConfig</prop>
		<prop key="mcast-port">0</prop>
		<prop key="log-level">warning</prop>
	</util:properties>

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

	<gfe:local-region id="simple"/>

	<gfe:local-region id="pub" name="publisher"/>

	<gfe:local-region id="persistent" persistent="true"/>

	<gfe:local-region id="complex" close="true" destroy="false">
        <gfe:cache-listener>
            <ref bean="c-listener"/>
			<bean class="org.springframework.data.gemfire.SimpleCacheListener"/>
		</gfe:cache-listener>
		<gfe:cache-loader ref="c-loader"/>
		<gfe:cache-writer ref="c-writer"/>
	</gfe:local-region>

    <gfe:local-region id="local-with-attributes"
					  data-policy="PRELOADED"
					  disk-synchronous="true"
					  ignore-jta="true"
					  index-update-type="asynchronous"
					  initial-capacity="10"
					  key-constraint="java.lang.String"
					  load-factor="0.90"
					  value-constraint="java.lang.String"
	/>

	<gfe:local-region id="Compressed" persistent="false">
		<gfe:compressor>
			<bean class="org.springframework.data.gemfire.config.xml.LocalRegionNamespaceTest$TestCompressor" p:name="ABC"/>
		</gfe:compressor>
	</gfe:local-region>

	<bean id="c-listener" class="org.springframework.data.gemfire.SimpleCacheListener"/>
	<bean id="c-loader" class="org.springframework.data.gemfire.SimpleCacheLoader"/>
	<bean id="c-writer" class="org.springframework.data.gemfire.SimpleCacheWriter"/>

	<gfe:lookup-region id="lookup" name="existing"/>

</beans>
