mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
19304: Removed static (singleton) usage of CacheFactory git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19306 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -66,7 +66,7 @@ public class EhCacheManagerFactoryBean implements FactoryBean, InitializingBean,
|
||||
{
|
||||
URL configUrl = this.configLocation.getURL();
|
||||
logger.info("Initializing EHCache CacheManager using URL: " + configLocation);
|
||||
this.cacheManager = CacheManager.create(configUrl);
|
||||
this.cacheManager = new CacheManager(configUrl);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
|
@@ -109,7 +109,7 @@ public class InternalEhCacheManagerFactoryBean implements FactoryBean<CacheManag
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Missing default cache config: " + DEFAULT_CONFIGURATION_FILE);
|
||||
}
|
||||
InternalEhCacheManagerFactoryBean.cacheManager = CacheManager.create(configUrl);
|
||||
InternalEhCacheManagerFactoryBean.cacheManager = new CacheManager(configUrl);
|
||||
defaultLocation = true;
|
||||
}
|
||||
// done
|
||||
|
Reference in New Issue
Block a user