Author: norman.richards(a)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;
+ }
}
}
Show replies by date