openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1179633 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Date Thu, 06 Oct 2011 14:07:24 GMT
Author: struberg
Date: Thu Oct  6 14:07:24 2011
New Revision: 1179633

URL: http://svn.apache.org/viewvc?rev=1179633&view=rev
Log:
OWB-620 don't validate disabled beans.

Disabled beans are out of order, thus they 
don't need to get checked. Also they often are
disabled just because something is 'missing' or
otherwise not available.

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=1179633&r1=1179632&r2=1179633&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
Thu Oct  6 14:07:24 2011
@@ -350,6 +350,12 @@ public class BeansDeployer
            Stack<String> beanNames = new Stack<String>();
             for (Bean<?> bean : beans)
             {
+                if (bean instanceof OwbBean && !((OwbBean)bean).isEnabled())
+                {
+                    // we skip disabled beans
+                    continue;
+                }
+
                 String beanName = bean.getName();
                 if(beanName != null)
                 {



Mime
View raw message