openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r910345 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans: config/DefinitionUtil.java util/WebBeansAnnotatedTypeUtil.java
Date Mon, 15 Feb 2010 22:03:13 GMT
Author: gerdogdu
Date: Mon Feb 15 22:03:12 2010
New Revision: 910345

URL: http://svn.apache.org/viewvc?rev=910345&view=rev
Log:
Update producer field creation to set field on ResourceBean

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansAnnotatedTypeUtil.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=910345&r1=910344&r2=910345&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
Mon Feb 15 22:03:12 2010
@@ -707,6 +707,7 @@
             defineProducerMethodApiTypes(resourceBean, field.getGenericType() , field.getDeclaredAnnotations());
             defineQualifiers(resourceBean, field.getDeclaredAnnotations());
             resourceBean.setImplScopeType(new DependentScopeLiteral());
+            resourceBean.setProducerField(field);
             
             return resourceBean;
         }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansAnnotatedTypeUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansAnnotatedTypeUtil.java?rev=910345&r1=910344&r2=910345&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansAnnotatedTypeUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansAnnotatedTypeUtil.java
Mon Feb 15 22:03:12 2010
@@ -433,7 +433,8 @@
                     
                     resourceBean.getTypes().addAll(annotatedField.getTypeClosure());
                     DefinitionUtil.defineQualifiers(resourceBean, anns);                
   
-                    resourceBean.setImplScopeType(new DependentScopeLiteral());         
  
+                    resourceBean.setImplScopeType(new DependentScopeLiteral());
+                    resourceBean.setProducerField(field);
                     
                     producerBeans.add(resourceBean);                    
                 }



Mime
View raw message