mirror of https://github.com/apache/cloudstack.git
Fixed UserContext initialization - got broken by unittest
This commit is contained in:
parent
530fb65278
commit
ff708a87d3
|
|
@ -12,12 +12,13 @@
|
|||
// Automatically generated by addcopyright.py at 04/03/2012
|
||||
package com.cloud.user;
|
||||
|
||||
import com.cloud.server.ManagementService;
|
||||
import com.cloud.utils.component.ComponentLocator;
|
||||
|
||||
public class UserContext {
|
||||
|
||||
private static ThreadLocal<UserContext> s_currentContext = new ThreadLocal<UserContext>();
|
||||
private static final ComponentLocator locator = ComponentLocator.getCurrentLocator();
|
||||
private static final ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
|
||||
private static final AccountService _accountMgr = locator.getManager(AccountService.class);
|
||||
|
||||
private long userId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue