cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r559289 - /incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
Date Wed, 25 Jul 2007 02:44:09 GMT
Author: ningjiang
Date: Tue Jul 24 19:44:08 2007
New Revision: 559289

URL: http://svn.apache.org/viewvc?view=rev&rev=559289
Log:
Fixed a bus injection error in ServletTransportFactory

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

Modified: incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java?view=diff&rev=559289&r1=559288&r2=559289
==============================================================================
--- incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
(original)
+++ incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
Tue Jul 24 19:44:08 2007
@@ -39,13 +39,12 @@
 
 public class ServletTransportFactory extends AbstractHTTPTransportFactory
     implements DestinationFactory {
-
-    private Bus bus;
+    
     private Map<String, ServletDestination> destinations = 
         new ConcurrentHashMap<String, ServletDestination>();
     
     public ServletTransportFactory(Bus b) {
-        bus = b;
+        super.setBus(b);
         List<String> ids = Arrays.asList(new String[] {
             "http://schemas.xmlsoap.org/wsdl/soap/http",
             "http://schemas.xmlsoap.org/soap/http",
@@ -59,14 +58,11 @@
 
     public ServletTransportFactory() {
     }
+   
 
-    public Bus getBus() {
-        return bus;
-    }
-
-    @Resource
-    public void setBus(Bus bus) {
-        this.bus = bus;
+    @Resource(name = "bus")
+    public void setBus(Bus b) {
+        super.setBus(b);
     }
     
     public void removeDestination(String path) {
@@ -78,7 +74,7 @@
         ServletDestination d = getDestinationForPath(endpointInfo.getAddress());
         if (d == null) { 
             String path = getTrimmedPath(endpointInfo.getAddress());
-            d = new ServletDestination(bus, null, endpointInfo, this, path);
+            d = new ServletDestination(getBus(), null, endpointInfo, this, path);
             destinations.put(path, d);
         }
         return d;



Mime
View raw message