[seam-commits] Seam SVN: r8417 - trunk/src/main/org/jboss/seam.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jun 25 11:55:04 EDT 2008


Author: norman.richards at jboss.com
Date: 2008-06-25 11:55:04 -0400 (Wed, 25 Jun 2008)
New Revision: 8417

Modified:
   trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-3096

Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java	2008-06-25 15:42:51 UTC (rev 8416)
+++ trunk/src/main/org/jboss/seam/Component.java	2008-06-25 15:55:04 UTC (rev 8417)
@@ -960,10 +960,12 @@
    }
 
    private boolean isInterceptorEnabled(Interceptor interceptor) {
-       Class interceptorClass = interceptor.getUserInterceptorClass();
-       if (interceptorClass != null) {
-           if (Init.instance().getDisabledInterceptors().contains(interceptorClass.getName())) {
-               return false;
+       if (Contexts.isApplicationContextActive()) {
+           Class interceptorClass = interceptor.getUserInterceptorClass();
+           if (interceptorClass != null) {
+               if (Init.instance().getDisabledInterceptors().contains(interceptorClass.getName())) {
+                   return false;
+               }
            }
        }
        




More information about the seam-commits mailing list