openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r915705 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Date Wed, 24 Feb 2010 07:12:33 GMT
Author: gerdogdu
Date: Wed Feb 24 07:12:33 2010
New Revision: 915705

URL: http://svn.apache.org/viewvc?rev=915705&view=rev
Log:
Tweak interceptor/decorator creation conditions

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java?rev=915705&r1=915704&r2=915705&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Wed Feb 24 07:12:33 2010
@@ -33,7 +33,6 @@
 
 import org.apache.webbeans.WebBeansConstants;
 import org.apache.webbeans.component.AbstractInjectionTargetBean;
-import org.apache.webbeans.component.EnterpriseBeanMarker;
 import org.apache.webbeans.component.InjectionTargetBean;
 import org.apache.webbeans.component.ManagedBean;
 import org.apache.webbeans.component.NewBean;
@@ -307,7 +306,8 @@
                         DefinitionUtil.defineDecoratorStack((AbstractInjectionTargetBean<Object>)bean);
  
                     }
                     
-                    if(!(bean instanceof javax.enterprise.inject.spi.Interceptor))
+                    if(!(bean instanceof javax.enterprise.inject.spi.Interceptor) &&
+                            !(bean instanceof NewBean))
                     {
                         DefinitionUtil.defineBeanInterceptorStack((AbstractInjectionTargetBean<Object>)bean);
  
                     }



Mime
View raw message