[seam-commits] Seam SVN: r10329 - trunk/src/main/org/jboss/seam/security/permission.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 7 00:48:27 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-04-07 00:48:27 -0400 (Tue, 07 Apr 2009)
New Revision: 10329

Modified:
   trunk/src/main/org/jboss/seam/security/permission/PermissionMapper.java
Log:
JBSEAM-3664

Modified: trunk/src/main/org/jboss/seam/security/permission/PermissionMapper.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/permission/PermissionMapper.java	2009-04-07 04:22:02 UTC (rev 10328)
+++ trunk/src/main/org/jboss/seam/security/permission/PermissionMapper.java	2009-04-07 04:48:27 UTC (rev 10329)
@@ -18,6 +18,7 @@
 import org.jboss.seam.annotations.Startup;
 import org.jboss.seam.annotations.intercept.BypassInterceptors;
 import org.jboss.seam.contexts.Contexts;
+import org.jboss.seam.core.Events;
 import org.jboss.seam.core.Init;
 
 /**
@@ -32,6 +33,8 @@
 @Startup
 public class PermissionMapper implements Serializable
 {
+   public static final String DEFAULT_RESOLVER_CHAIN_CREATED = "org.jboss.seam.security.defaultResolverChainCreated";
+   
    private Map<Class,Map<String,String>> resolverChains = new HashMap<Class,Map<String,String>>();
    
    private String defaultResolverChain;
@@ -160,6 +163,7 @@
          }
          
          Contexts.getSessionContext().set(DEFAULT_RESOLVER_CHAIN, chain);
+         if (Events.exists()) Events.instance().raiseEvent(DEFAULT_RESOLVER_CHAIN_CREATED, chain);
       }
       
       return chain;




More information about the seam-commits mailing list