Skip to content

Commit

Permalink
WS
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@430 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Dec 7, 2008
1 parent 1d295cd commit d5678f8
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -4,7 +4,8 @@
import org.jboss.webbeans.contexts.RequestContext;
import org.jboss.webbeans.contexts.SessionContext;

public class CurrentManager {
public class CurrentManager
{

protected static ManagerImpl rootManager;

Expand All @@ -13,15 +14,17 @@ public static ManagerImpl rootManager()
return rootManager;
}

public static void setRootManager(ManagerImpl rootManager) {
public static void setRootManager(ManagerImpl rootManager)
{
CurrentManager.rootManager = rootManager;
}

/**
* Set up the root manager.
* TODO: move this to Bootstrap
*/
static {
static
{
rootManager = new ManagerImpl();
rootManager.addContext(RequestContext.INSTANCE);
rootManager.addContext(SessionContext.INSTANCE);
Expand Down

0 comments on commit d5678f8

Please sign in to comment.