mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Dictionary Cache improvements - ensure CMIS Dictionary Registry is MT-aware
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -147,7 +147,7 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
// initialise empty dictionary & namespaces
|
||||
putCompiledModels(tenantDomain, new HashMap<QName,CompiledModel>());
|
||||
putUriToModels(tenantDomain, new HashMap<String, List<CompiledModel>>());
|
||||
|
||||
|
||||
namespaceDAO.init();
|
||||
|
||||
// populate the dictionary
|
||||
@@ -155,8 +155,8 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
{
|
||||
dictionaryListener.onDictionaryInit();
|
||||
}
|
||||
|
||||
// populate the dictionary
|
||||
|
||||
// notify registered listeners that dictionary has been initialised
|
||||
for (DictionaryListener dictionaryListener : dictionaryListeners)
|
||||
{
|
||||
dictionaryListener.afterDictionaryInit();
|
||||
@@ -177,6 +177,12 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
|
||||
namespaceDAO.destroy();
|
||||
|
||||
// notify registered listeners that dictionary has been destroyed
|
||||
for (DictionaryListener dictionaryDeployer : dictionaryListeners)
|
||||
{
|
||||
dictionaryDeployer.afterDictionaryDestroy();
|
||||
}
|
||||
|
||||
logger.info("Dictionary destroyed");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user