geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1028418 - /geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java
Date Thu, 28 Oct 2010 18:27:18 GMT
Author: djencks
Date: Thu Oct 28 18:27:18 2010
New Revision: 1028418

URL: http://svn.apache.org/viewvc?rev=1028418&view=rev
Log:
better ManagersImpl choice of BeanManager

Modified:
    geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java

Modified: geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java?rev=1028418&r1=1028417&r2=1028418&view=diff
==============================================================================
--- geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java
(original)
+++ geronimo/tck/branches/3.0/geronimo-porting/src/main/java/org/apache/geronimo/test/tck/ManagersImpl.java
Thu Oct 28 18:27:18 2010
@@ -19,20 +19,15 @@
 package org.apache.geronimo.test.tck;
 
 import javax.enterprise.inject.spi.BeanManager;
-
-import org.apache.webbeans.container.InjectableBeanManager;
+import org.apache.webbeans.container.BeanManagerImpl;
 import org.jboss.jsr299.tck.spi.Managers;
 
 public class ManagersImpl implements Managers {
 
-    private BeanManager beanManager;
-
     public BeanManager getManager() {
         System.out.println("getManager");
-        if (beanManager == null) {
-            beanManager = new InjectableBeanManager();
-        }
-        return beanManager;
+
+        return BeanManagerImpl.getManager();
     }
 
 }



Mime
View raw message