Skip to content

Commit

Permalink
Minor, SharedContext should still have ThreadLocal active state
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@322 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
nickarls committed Nov 18, 2008
1 parent 21babd5 commit daa1f2f
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -6,19 +6,20 @@
public class SharedContext extends AbstractContext
{
private BeanMap beans;
private AtomicBoolean active;
private ThreadLocal<AtomicBoolean> active;

public SharedContext(Class<? extends Annotation> scopeType)
{
super(scopeType);
beans = new SimpleBeanMap();
active = new AtomicBoolean(true);
active = new ThreadLocal<AtomicBoolean>();
active.set(new AtomicBoolean(true));
}

@Override
protected AtomicBoolean getActive()
{
return active;
return active.get();
}

@Override
Expand Down

0 comments on commit daa1f2f

Please sign in to comment.