SGF-480 - Change default for use-bean-factory-locator to false.

This commit is contained in:
John Blum
2016-03-09 20:57:59 -08:00
parent 6dfd3e7082
commit 6bf5ceeaf6
5 changed files with 6 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware,
protected boolean close = true;
protected boolean lazyInitialize = true;
protected boolean useBeanFactoryLocator = true;
protected boolean useBeanFactoryLocator = false;
protected final Log log = LogFactory.getLog(getClass());

View File

@@ -141,7 +141,7 @@ For cases in which there are no declared dependencies on the cache, set this att
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="use-bean-factory-locator" type="xsd:string" use="optional" default="true">
<xsd:attribute name="use-bean-factory-locator" type="xsd:string" use="optional" default="false">
<xsd:annotation>
<xsd:documentation><![CDATA[
Indicates whether a bean factory locator is enabled (default) for this cache definition or not. The locator stores

View File

@@ -137,6 +137,7 @@ public class CacheFactoryBeanTest {
cacheFactoryBean.setSearchTimeout(45000);
cacheFactoryBean.setTransactionListeners(Collections.singletonList(mockTransactionLister));
cacheFactoryBean.setTransactionWriter(mockTransactionWriter);
cacheFactoryBean.setUseBeanFactoryLocator(true);
assertTrue(gemfireProperties.isEmpty());

View File

@@ -28,7 +28,7 @@
</util:properties>
<gfe:cache cache-xml-location="lazy-wiring-declarable-support-function-cache.xml"
properties-ref="gemfireProperties" lazy-init="false"/>
properties-ref="gemfireProperties" lazy-init="false" use-bean-factory-locator="true"/>
<gfe-data:function-executions base-package="org.springframework.data.gemfire.function.sample">
<gfe-data:include-filter type="assignable" expression="org.springframework.data.gemfire.function.sample.HelloFunctionExecution"/>

View File

@@ -16,7 +16,8 @@
<prop key="log-level">warning</prop>
</util:properties>
<gfe:cache cache-xml-location="classpath:cache-with-declarable.xml" properties-ref="gemfireProperties"/>
<gfe:cache cache-xml-location="cache-with-declarable.xml" properties-ref="gemfireProperties"
use-bean-factory-locator="true"/>
<bean id="bean" class="java.lang.Object"/>