SGF-480 - Change default for use-bean-factory-locator to false.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -137,6 +137,7 @@ public class CacheFactoryBeanTest {
|
||||
cacheFactoryBean.setSearchTimeout(45000);
|
||||
cacheFactoryBean.setTransactionListeners(Collections.singletonList(mockTransactionLister));
|
||||
cacheFactoryBean.setTransactionWriter(mockTransactionWriter);
|
||||
cacheFactoryBean.setUseBeanFactoryLocator(true);
|
||||
|
||||
assertTrue(gemfireProperties.isEmpty());
|
||||
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user