openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1800501 - /openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java
Date Sat, 01 Jul 2017 12:54:26 GMT
Author: rmannibucau
Date: Sat Jul  1 12:54:26 2017
New Revision: 1800501

URL: http://svn.apache.org/viewvc?rev=1800501&view=rev
Log:
extracting service/container creationg for cdi-se initializer impl

Modified:
    openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java

Modified: openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java?rev=1800501&r1=1800500&r2=1800501&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java
(original)
+++ openwebbeans/trunk/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java
Sat Jul  1 12:54:26 2017
@@ -87,9 +87,7 @@ public class OWBInitializer extends SeCo
             SingletonService<WebBeansContext> singletonInstance = WebBeansFinder.getSingletonService();
             DefaultSingletonService.class.cast(singletonInstance).register(loader, context);
 
-            Object startObj = new Object();
-            context.getService(ContainerLifecycle.class).startApplication(startObj);
-            return new OWBContainer(context, startObj);
+            return newContainer(context);
         }
         finally
         {
@@ -97,7 +95,14 @@ public class OWBInitializer extends SeCo
         }
     }
 
-    protected CDISeScannerService getScannerService()
+    protected SeContainer newContainer(final WebBeansContext context)
+    {
+        Object startObj = new Object();
+        context.getService(ContainerLifecycle.class).startApplication(startObj);
+        return new OWBContainer(context, startObj);
+    }
+
+    protected ScannerService getScannerService()
     {
         return scannerService;
     }



Mime
View raw message