<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:context="http://www.springframework.org/schema/context"
	   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/context https://www.springframework.org/schema/context/spring-context.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
">

	<!-- TODO refactor this configuration... yikes! -->
	<context:component-scan base-package="org.springframework.data.gemfire">
		<context:include-filter type="assignable" expression="org.springframework.data.gemfire.AutoRegionLookupDao"/>
		<context:exclude-filter type="annotation" expression="org.springframework.context.annotation.Configuration"/>
		<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
		<context:exclude-filter type="assignable" expression="org.springframework.data.gemfire.AutoRegionLookupWithAutowiringIntegrationTests$TestComponent"/>
		<context:exclude-filter type="assignable" expression="org.springframework.data.gemfire.transaction.GemfireTransactionManagerIntegrationTests$SuspendAndResumeCacheTransactionsRepository"/>
		<context:exclude-filter type="regex" expression="org.springframework.data.gemfire.*.sample.*"/>
	</context:component-scan>

	<util:properties id="gemfireProperties">
		<prop key="name">AutoRegionLookupWithComponentScanningIntegrationTests</prop>
		<prop key="log-level">error</prop>
	</util:properties>

	<gfe:cache properties-ref="gemfireProperties" cache-xml-location="/autoregionlookup-cache.xml"/>

	<gfe:auto-region-lookup/>

</beans>
