SGF-587 - Remove the GemfireBeanFactoryLocator and replace with SpringContextBootstrappingInitializer.
This commit is contained in:
@@ -1,32 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN" "http://www.gemstone.com/dtd/cache8_0.dtd">
|
||||
<cache lock-lease="120" lock-timeout="60" search-timeout="300">
|
||||
<region-attributes id="attTemplate" scope="local" data-policy="normal" initial-capacity="16" load-factor="0.75" concurrency-level="16" statistics-enabled="true">
|
||||
<key-constraint>java.lang.String</key-constraint>
|
||||
<cache-loader>
|
||||
<class-name>org.springframework.data.gemfire.UserObject</class-name>
|
||||
</cache-loader>
|
||||
|
||||
</region-attributes>
|
||||
<region name="root">
|
||||
<region-attributes refid="attTemplate" scope="distributed-no-ack">
|
||||
<region-time-to-live>
|
||||
<expiration-attributes timeout="0" action="invalidate"/>
|
||||
</region-time-to-live>
|
||||
<region-idle-time>
|
||||
<expiration-attributes timeout="0" action="invalidate"/>
|
||||
</region-idle-time>
|
||||
<entry-time-to-live>
|
||||
<expiration-attributes timeout="0" action="invalidate"/>
|
||||
</entry-time-to-live>
|
||||
<entry-idle-time>
|
||||
<expiration-attributes timeout="0" action="invalidate"/>
|
||||
</entry-idle-time>
|
||||
<cache>
|
||||
<region name="Example">
|
||||
<region-attributes data-policy="normal">
|
||||
<cache-loader>
|
||||
<class-name>org.springframework.data.gemfire.support.WiringDeclarableSupportIntegrationTests$TestCacheLoader</class-name>
|
||||
</cache-loader>
|
||||
</region-attributes>
|
||||
<entry>
|
||||
<key><string>Application Version</string></key>
|
||||
<value><string>1.0</string></value>
|
||||
</entry>
|
||||
</region>
|
||||
|
||||
</cache>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<cache>
|
||||
<function-service>
|
||||
<function>
|
||||
<class-name>org.springframework.data.gemfire.LazyWiringDeclarableSupportFunctionBasedIntegrationTest$HelloGemFireFunction</class-name>
|
||||
<class-name>org.springframework.data.gemfire.support.LazyWiringDeclarableSupportFunctionBasedIntegrationTests$HelloGemFireFunction</class-name>
|
||||
<parameter name="hello.address.to">
|
||||
<string>Everyone</string>
|
||||
</parameter>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:gfe="http://www.springframework.org/schema/gemfire"
|
||||
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
|
||||
">
|
||||
|
||||
<bean class="org.springframework.data.gemfire.test.GemfireTestBeanPostProcessor"/>
|
||||
|
||||
<gfe:cache use-bean-factory-locator="true"/>
|
||||
|
||||
<bean class="org.springframework.data.gemfire.support.GemfireBeanFactoryLocator"/>
|
||||
|
||||
<bean id="testBeanFactoryLocator" name="aliasOne, aliasTwo"
|
||||
class="org.springframework.data.gemfire.support.GemfireBeanFactoryLocator"/>
|
||||
|
||||
</beans>
|
||||
@@ -2,10 +2,10 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
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/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
">
|
||||
|
||||
<bean id="userDataSource" class="org.springframework.data.gemfire.LazyWiringDeclarableSupportIntegrationTest$TestDataSource"/>
|
||||
<bean id="userDataSource" class="org.springframework.data.gemfire.support.LazyWiringDeclarableSupportIntegrationTests$TestDataSource"/>
|
||||
|
||||
<bean id="supertoolUser" class="org.springframework.data.gemfire.repository.sample.User">
|
||||
<constructor-arg type="java.lang.String" value="supertool"/>
|
||||
@@ -11,16 +11,18 @@
|
||||
">
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">CacheWithDeclarableContextConfig</prop>
|
||||
<prop key="mcast-port">0</prop>
|
||||
<prop key="name">WiringDeclarableSupportIntegrationTests</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache cache-xml-location="cache-with-declarable.xml" properties-ref="gemfireProperties"
|
||||
use-bean-factory-locator="true"/>
|
||||
|
||||
<bean id="bean" class="java.lang.Object"/>
|
||||
<gfe:lookup-region id="Example"/>
|
||||
|
||||
<bean abstract="true" class="org.springframework.data.gemfire.UserObject" p:prop1="Enescu" p:prop2-ref="bean"/>
|
||||
<bean id="testBean" class="org.springframework.data.gemfire.support.WiringDeclarableSupportIntegrationTests$TestBean" p:name="Hello"/>
|
||||
|
||||
<bean abstract="true" class="org.springframework.data.gemfire.support.WiringDeclarableSupportIntegrationTests$TestCacheLoader"
|
||||
p:propertyOne-ref="testBean" p:propertyTwo="GoodBye"/>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user