openwebbeans-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1800502&view=rev
Log:
allowing OWBInitializer children to customize services before creating the WBC

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=1800502&r1=1800501&r2=1800502&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:56:09 2017
@@ -69,6 +69,7 @@ public class OWBInitializer extends SeCo
             services.putIfAbsent(ScannerService.class.getName(), getScannerService());
             services.putIfAbsent(LoaderService.class.getName(), new CDISeLoaderService(extensions,
loader));
             services.putIfAbsent(BeanArchiveService.class.getName(), new CDISeBeanArchiveService(bai));
+            addCustomServices(services);
             Map<Class<?>, Object> preparedServices = services.entrySet().stream()
                     .collect(toMap(e ->
                     {
@@ -95,6 +96,11 @@ public class OWBInitializer extends SeCo
         }
     }
 
+    protected void addCustomServices(final Map<String, Object> services)
+    {
+        // for children classes
+    }
+
     protected SeContainer newContainer(final WebBeansContext context)
     {
         Object startObj = new Object();



Mime
View raw message