openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r836315 - /incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java
Date Sun, 15 Nov 2009 01:53:20 GMT
Author: gerdogdu
Date: Sun Nov 15 01:53:20 2009
New Revision: 836315

URL: http://svn.apache.org/viewvc?rev=836315&view=rev
Log:
Update while running TCK.

Modified:
    incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java

Modified: incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java?rev=836315&r1=836314&r2=836315&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java
(original)
+++ incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/RegisterBean.java
Sun Nov 15 01:53:20 2009
@@ -21,6 +21,7 @@
 import javax.enterprise.inject.Default;
 import javax.inject.Inject;
 import javax.inject.Named;
+import javax.enterprise.inject.spi.Bean;
 import javax.enterprise.inject.spi.BeanManager;
 
 import org.apache.commons.logging.Log;
@@ -71,7 +72,9 @@
     @PostConstruct
     public void init()
     {
-        logger = (Log)manager.getReference(manager.getBeans("logger").iterator().next(),
null, null);
+        Bean<?> bean = manager.getBeans("logger").iterator().next();
+        
+        logger = (Log)manager.getReference(bean, null, manager.createCreationalContext(bean));
     }
     
     



Mime
View raw message