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:
Jan Vonka
2009-04-22 16:30:51 +00:00
parent 4b98b6c0d8
commit 200a8c3843
6 changed files with 82 additions and 20 deletions

View File

@@ -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");
}