cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1569316 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java
Date Tue, 18 Feb 2014 13:33:40 GMT
Author: sergeyb
Date: Tue Feb 18 13:33:39 2014
New Revision: 1569316

URL: http://svn.apache.org/r1569316
Log:
Minor update to CXFNonSpringServlet to allow for the overriding of the class loader initialization

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java?rev=1569316&r1=1569315&r2=1569316&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java
Tue Feb 18 13:33:39 2014
@@ -76,7 +76,7 @@ public class CXFNonSpringServlet extends
             loadBus(sc);
         }
         if (this.bus != null) {
-            loader = bus.getExtension(ClassLoader.class);
+            loader = initClassLoader();
             ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
             resourceManager.addResourceResolver(new ServletContextResourceResolver(sc.getServletContext()));
             if (destinationRegistry == null) {
@@ -88,6 +88,10 @@ public class CXFNonSpringServlet extends
         finalizeServletInit(sc);
     }
 
+    protected ClassLoader initClassLoader() {
+        return bus.getExtension(ClassLoader.class);
+    }
+    
     private static DestinationRegistry getDestinationRegistryFromBus(Bus bus) {
         DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
         try {



Mime
View raw message