Author: bstansberry(a)jboss.com
Date: 2007-10-19 15:27:21 -0400 (Fri, 19 Oct 2007)
New Revision: 14122
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
Log:
Use CacheHelper instead of making direct call
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
===================================================================
---
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19
14:39:47 UTC (rev 14121)
+++
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19
19:27:21 UTC (rev 14122)
@@ -188,9 +188,11 @@
Map result = new HashMap();
Set childrenNames = CacheHelper.getChildrenNames(jbcCache, regionFqn);
for (Object childName : childrenNames) {
- result.put(childName, jbcCache.get(new Fqn(regionFqn, childName),
ITEM));
+ result.put(childName, CacheHelper.get(jbcCache,regionFqn, childName));
}
return result;
+ } catch (CacheException e) {
+ throw e;
} catch (Exception e) {
throw new CacheException(e);
}
Show replies by date