openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1077909 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Date Fri, 04 Mar 2011 12:29:38 GMT
Author: struberg
Date: Fri Mar  4 12:29:38 2011
New Revision: 1077909

URL: http://svn.apache.org/viewvc?rev=1077909&view=rev
Log:
OWB-539 an @Inject annotated ct indicates a CDI bean

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

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java?rev=1077909&r1=1077908&r2=1077909&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Fri Mar  4 12:29:38 2011
@@ -559,6 +559,19 @@ public final class DefinitionUtil
                 return false;
             }
         }
+        
+        Constructor<?>[] cts = cls.getDeclaredConstructors();
+        for (Constructor<?> ct : cts)
+        {
+            anns = ct.getAnnotations();
+            for (Annotation ann : anns)
+            {
+                if (ann instanceof Inject)
+                {
+                    return false;
+                }
+            }
+        }
 
         Field[] fields = cls.getDeclaredFields();
         for (Field field : fields)



Mime
View raw message