Author: norman.richards(a)jboss.com
Date: 2008-06-25 11:42:51 -0400 (Wed, 25 Jun 2008)
New Revision: 8416
Modified:
branches/Seam_2_0/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-3096
Modified: branches/Seam_2_0/src/main/org/jboss/seam/Component.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/Component.java 2008-06-25 06:23:27 UTC (rev
8415)
+++ branches/Seam_2_0/src/main/org/jboss/seam/Component.java 2008-06-25 15:42:51 UTC (rev
8416)
@@ -943,13 +943,15 @@
}
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;
+ }
}
}
-
+
return true;
}
Show replies by date