SGF-11
+ changed default cache name from 'cache' to 'gemfire-cache' to prevent collision with other defaults
This commit is contained in:
costin
2010-09-01 11:05:59 +03:00
parent 6f6480f032
commit e8af99870c
7 changed files with 10 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ class CacheParser extends AbstractSingleBeanDefinitionParser {
throws BeanDefinitionStoreException {
String name = super.resolveId(element, definition, parserContext);
if (!StringUtils.hasText(name)) {
name = "cache";
name = "gemfire-cache";
}
return name;
}

View File

@@ -60,7 +60,7 @@ class ClientRegionParser extends AbstractSingleBeanDefinitionParser {
String attr = element.getAttribute("cache-ref");
// add cache reference (fallback to default if nothing is specified)
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "cache"));
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "gemfire-cache"));
ManagedList<Object> interests = new ManagedList<Object>();

View File

@@ -30,5 +30,6 @@ class GemfireNamespaceHandler extends NamespaceHandlerSupport {
registerBeanDefinitionParser("replicated-region", new ReplicatedRegionParser());
registerBeanDefinitionParser("partitioned-region", new PartitionedRegionParser());
registerBeanDefinitionParser("client-region", new ClientRegionParser());
registerBeanDefinitionParser("pool", new PoolParser());
}
}

View File

@@ -54,7 +54,7 @@ class PartitionedRegionParser extends AbstractSingleBeanDefinitionParser {
String attr = element.getAttribute("cache-ref");
// add cache reference (fallback to default if nothing is specified)
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "cache"));
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "gemfire-cache"));
// partition attributes

View File

@@ -53,7 +53,7 @@ class ReplicatedRegionParser extends AbstractSingleBeanDefinitionParser {
String attr = element.getAttribute("cache-ref");
// add cache reference (fallback to default if nothing is specified)
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "cache"));
builder.addPropertyReference("cache", (StringUtils.hasText(attr) ? attr : "gemfire-cache"));
// add attributes
AttributesFactory af = new AttributesFactory();