Fixed UserContext initialization - got broken by unittest

This commit is contained in:
Alena Prokharchyk 2012-08-07 11:50:26 -07:00
parent 95449da4be
commit 629556c708
1 changed files with 2 additions and 1 deletions

View File

@ -16,12 +16,13 @@
// under the License.
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;