mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/DEV/V4.1-BUG-FIX to HEAD
42431: Fix to initialisation code that can cause patches such as ActivitiesTemplatesUpdatePatch that access beans such as Repository before the spring bean init lifecycle has completed to fail. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@42435 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,9 +76,8 @@ public class Repository implements ApplicationContextAware, ApplicationListener,
|
|||||||
// company home
|
// company home
|
||||||
private StoreRef companyHomeStore;
|
private StoreRef companyHomeStore;
|
||||||
private String companyHomePath;
|
private String companyHomePath;
|
||||||
private Map<String, NodeRef> companyHomeRefs;
|
final private Map<String, NodeRef> companyHomeRefs = new ConcurrentHashMap<String, NodeRef>();
|
||||||
|
final private Map<String, NodeRef> rootRefs = new ConcurrentHashMap<String, NodeRef>();
|
||||||
private Map<String, NodeRef> rootRefs;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -199,20 +198,9 @@ public class Repository implements ApplicationContextAware, ApplicationListener,
|
|||||||
{
|
{
|
||||||
tenantAdminService.register(this);
|
tenantAdminService.register(this);
|
||||||
|
|
||||||
if (companyHomeRefs == null)
|
|
||||||
{
|
|
||||||
companyHomeRefs = new ConcurrentHashMap<String, NodeRef>(4);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rootRefs == null)
|
|
||||||
{
|
|
||||||
rootRefs = new ConcurrentHashMap<String, NodeRef>(4);
|
|
||||||
}
|
|
||||||
|
|
||||||
getCompanyHome();
|
getCompanyHome();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the root home of the company home store
|
* Gets the root home of the company home store
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user