openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1789204 - in /openwebbeans/meecrowave/trunk: meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java
Date Tue, 28 Mar 2017 19:46:02 GMT
Author: rmannibucau
Date: Tue Mar 28 19:46:02 2017
New Revision: 1789204

URL: http://svn.apache.org/viewvc?rev=1789204&view=rev
Log:
MEECROWAVE-21 ensure ConfigurationCustomizer is used in all cases

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
    openwebbeans/meecrowave/trunk/meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java?rev=1789204&r1=1789203&r2=1789204&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
Tue Mar 28 19:46:02 2017
@@ -108,6 +108,7 @@ import java.util.concurrent.atomic.Atomi
 import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Stream;
+import java.util.stream.StreamSupport;
 
 import static java.util.Collections.emptyList;
 import static java.util.Collections.emptySet;
@@ -1028,6 +1029,8 @@ public class Meecrowave implements AutoC
 
         public Builder() { // load defaults
             extensions.put(ValueTransformers.class, new ValueTransformers());
+            StreamSupport.stream(ServiceLoader.load(Meecrowave.ConfigurationCustomizer.class).spliterator(),
false)
+                    .forEach(c -> c.accept(this));
             loadFrom("meecrowave.properties");
         }
 

Modified: openwebbeans/meecrowave/trunk/meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java?rev=1789204&r1=1789203&r2=1789204&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-junit/src/main/java/org/apache/meecrowave/testing/MonoBase.java
Tue Mar 28 19:46:02 2017
@@ -31,8 +31,6 @@ public class MonoBase {
 
     public Meecrowave.Builder doBoot() {
         final Meecrowave.Builder configuration = new Meecrowave.Builder().randomHttpPort().noShutdownHook(/*the
rule does*/);
-        StreamSupport.stream(ServiceLoader.load(Meecrowave.ConfigurationCustomizer.class).spliterator(),
false)
-                .forEach(c -> c.accept(configuration));
         CONFIGURATION.compareAndSet(null, configuration);
 
         final Meecrowave meecrowave = new Meecrowave(CONFIGURATION.get());



Mime
View raw message