tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1132506 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java
Date Mon, 06 Jun 2011 00:13:07 GMT
Author: dblevins
Date: Mon Jun  6 00:13:07 2011
New Revision: 1132506

URL: http://svn.apache.org/viewvc?rev=1132506&view=rev
Log:
Always install CDI support -- hopefully we can make that faster

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java?rev=1132506&r1=1132505&r2=1132506&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java
Mon Jun  6 00:13:07 2011
@@ -34,16 +34,10 @@ import org.apache.webbeans.logger.WebBea
 public class CdiBuilder {
     private static final WebBeansLogger logger = WebBeansLogger.getLogger(CdiBuilder.class);
 
-    private static final WebBeansContext noContext = new WebBeansContext();
-
     public CdiBuilder() {
     }
 
     public void build(AppInfo appInfo, AppContext appContext, List<BeanContext> allDeployments)
{
-        if (!hasBeans(appInfo)) {
-            appContext.setWebBeansContext(noContext);
-            return;
-        }
 
         ThreadSingletonService singletonService = SystemInstance.get().getComponent(ThreadSingletonService.class);
         logger.info("existing thread singleton service in SystemInstance() " + singletonService);



Mime
View raw message