cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1236452 - in /cxf/trunk/rt/transports: http/src/main/java/org/apache/cxf/transport/http/ jms/src/main/java/org/apache/cxf/transport/jms/ local/src/main/java/org/apache/cxf/transport/local/
Date Thu, 26 Jan 2012 23:57:42 GMT
Author: dkulp
Date: Thu Jan 26 23:57:42 2012
New Revision: 1236452

URL: http://svn.apache.org/viewvc?rev=1236452&view=rev
Log:
[CXF-4066] Makesure subclasses of AbstractTransportFactory don't
register until local fields are ready.

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSTransportFactory.java
    cxf/trunk/rt/transports/local/src/main/java/org/apache/cxf/transport/local/LocalTransportFactory.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java?rev=1236452&r1=1236451&r2=1236452&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Thu Jan 26 23:57:42 2012
@@ -90,7 +90,7 @@ public class HTTPTransportFactory 
         this(b, null);
     }
     public HTTPTransportFactory(Bus b, DestinationRegistry registry) {
-        super(DEFAULT_NAMESPACES, b);
+        super(DEFAULT_NAMESPACES, null);
         if (registry == null && b != null) {
             registry = b.getExtension(DestinationRegistry.class);
         }
@@ -98,6 +98,8 @@ public class HTTPTransportFactory 
             registry = new DestinationRegistryImpl();
         }
         this.registry = registry;
+        bus = b;
+        register();
     }
 
     public HTTPTransportFactory(DestinationRegistry registry) {

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSTransportFactory.java?rev=1236452&r1=1236451&r2=1236452&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSTransportFactory.java
Thu Jan 26 23:57:42 2012
@@ -58,6 +58,9 @@ public class JMSTransportFactory extends
     public JMSTransportFactory() {
         super(DEFAULT_NAMESPACES);
     }
+    public JMSTransportFactory(Bus b) {
+        super(DEFAULT_NAMESPACES, b);
+    }
     
     @Resource(name = "cxf")
     public void setBus(Bus bus) {

Modified: cxf/trunk/rt/transports/local/src/main/java/org/apache/cxf/transport/local/LocalTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/local/src/main/java/org/apache/cxf/transport/local/LocalTransportFactory.java?rev=1236452&r1=1236451&r2=1236452&view=diff
==============================================================================
--- cxf/trunk/rt/transports/local/src/main/java/org/apache/cxf/transport/local/LocalTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/local/src/main/java/org/apache/cxf/transport/local/LocalTransportFactory.java
Thu Jan 26 23:57:42 2012
@@ -83,7 +83,7 @@ public class LocalTransportFactory exten
         this(null);
     }
     public LocalTransportFactory(Bus b) {
-        super(DEFAULT_NAMESPACES, b);
+        super(DEFAULT_NAMESPACES, null);
         
         messageFilterProperties = new HashSet<String>();
         messageIncludeProperties = new HashSet<String>();
@@ -94,6 +94,9 @@ public class LocalTransportFactory exten
         messageIncludeProperties.add(Message.CONTENT_TYPE);
         messageIncludeProperties.add(Message.ACCEPT_CONTENT_TYPE);
         messageIncludeProperties.add(Message.RESPONSE_CODE);
+        
+        bus = b;
+        register();
     }
     
     @Resource(name = "cxf")



Mime
View raw message