cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1490529 - in /cxf/branches/2.7.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
Date Fri, 07 Jun 2013 08:02:11 GMT
Author: ffang
Date: Fri Jun  7 08:02:10 2013
New Revision: 1490529

URL: http://svn.apache.org/r1490529
Log:
Merged revisions 1490526 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1490526 | ffang | 2013-06-07 15:26:30 +0800 (δΊ”, 07  6 2013) | 1 line
  
  [CXF-5059]use bus.getExtension(ClassLoader.class) as default CL
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/trunk:r1490526

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java?rev=1490529&r1=1490528&r2=1490529&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
Fri Jun  7 08:02:10 2013
@@ -273,8 +273,14 @@ public class WSDLManagerImpl implements 
     private void registerInitialXmlExtensions(String resource) throws BusException {
         Properties initialExtensions = null;
         try {
-            initialExtensions = PropertiesLoaderUtils.loadAllProperties(resource, 
-                  this.getClass().getClassLoader());
+            ClassLoader cl = null;
+            if (bus != null) {
+                cl = bus.getExtension(ClassLoader.class);
+            }
+            if (cl != null) {
+                initialExtensions = PropertiesLoaderUtils.loadAllProperties(resource, cl);
+            }
+            
             //use TCCL as fallback so that can load resources from other bundles in OSGi
             if (initialExtensions == null || initialExtensions.size() == 0) {
                 initialExtensions = PropertiesLoaderUtils.loadAllProperties(resource, 



Mime
View raw message