Additional test case to test SDG's auto Region lookup behavior with Spring's component-scan functionality.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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 http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.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
|
||||
">
|
||||
|
||||
<!-- 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="assignable" expression="org.springframework.data.gemfire.AutoRegionLookupWithAutowiringIntegrationTests$TestComponent"/>
|
||||
<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="mcast-port">0</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache properties-ref="gemfireProperties" cache-xml-location="/autoregionlookup-cache.xml"/>
|
||||
|
||||
<gfe:auto-region-lookup/>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user