Skip to content

Commit

Permalink
Use system property for initial check
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj committed Mar 1, 2011
1 parent cd9ef0f commit 505feb0
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -32,6 +32,7 @@
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionAction;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -52,6 +53,17 @@ public class SeamConversationContextFactory

private static Map<String, SeamConversationContext> contexts;

static
{
disableNoopInstance = AccessController.doPrivileged(new PrivilegedAction<Boolean>()
{
public Boolean run()
{
return Boolean.getBoolean("seam.conversation.disable.noop");
}
});
}

/**
* Produce matching Seam conversation context.
*
Expand Down

0 comments on commit 505feb0

Please sign in to comment.