From 7f58da93511a81026ef734684fb25b5c0fb47196 Mon Sep 17 00:00:00 2001 From: Manik Surtani Date: Mon, 13 Oct 2008 09:17:58 +0000 Subject: [PATCH] Upgraded to use a non-deprecated factory constructor git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15333 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../cache/jbc2/builder/SharedCacheInstanceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/SharedCacheInstanceManager.java b/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/SharedCacheInstanceManager.java index 6faae5fa60..3b26a2f261 100644 --- a/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/SharedCacheInstanceManager.java +++ b/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/SharedCacheInstanceManager.java @@ -190,7 +190,7 @@ public class SharedCacheInstanceManager implements CacheInstanceManager { protected Cache createSharedCache(Settings settings, Properties properties) { String configResource = PropertiesHelper.getString(CACHE_RESOURCE_PROP, properties, DEFAULT_CACHE_RESOURCE); - return DefaultCacheFactory.getInstance().createCache(configResource, false); + return new DefaultCacheFactory().createCache(configResource, false); } /**