geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1832475 - in /geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config: DefaultConfigBuilder.java DefaultConfigProvider.java
Date Tue, 29 May 2018 19:38:48 GMT
Author: struberg
Date: Tue May 29 19:38:48 2018
New Revision: 1832475

URL: http://svn.apache.org/viewvc?rev=1832475&view=rev
Log:
fix default ClassLoader lookup

Modified:
    geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigBuilder.java
    geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigProvider.java

Modified: geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigBuilder.java?rev=1832475&r1=1832474&r2=1832475&view=diff
==============================================================================
--- geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigBuilder.java
(original)
+++ geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigBuilder.java
Tue May 29 19:38:48 2018
@@ -46,9 +46,7 @@ import static java.util.Arrays.asList;
 @Typed
 @Vetoed
 public class DefaultConfigBuilder implements ConfigBuilder {
-
-
-    protected ClassLoader forClassLoader;
+    private ClassLoader forClassLoader;
     private final List<ConfigSource> sources = new ArrayList<>();
     private final List<Converter<?>> converters = new ArrayList<>();
     private final Map<Class<?>, PrioritisedConverter> prioritisedConverters =
new HashMap<>();

Modified: geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigProvider.java
URL: http://svn.apache.org/viewvc/geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigProvider.java?rev=1832475&r1=1832474&r2=1832475&view=diff
==============================================================================
--- geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigProvider.java
(original)
+++ geronimo/components/config/branches/ConfigJSR/impl/src/main/java/org/apache/geronimo/config/DefaultConfigProvider.java
Tue May 29 19:38:48 2018
@@ -43,7 +43,7 @@ public class DefaultConfigProvider exten
 
     @Override
     public Config getConfig() {
-        return getConfig(null);
+        return getConfig(Thread.currentThread().getContextClassLoader());
     }
 
 



Mime
View raw message