cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1496737 - in /cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf: jaxws22/EndpointImpl.java transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java
Date Wed, 26 Jun 2013 05:28:17 GMT
Author: ema
Date: Wed Jun 26 05:28:17 2013
New Revision: 1496737

URL: http://svn.apache.org/r1496737
Log:
Fix compilation error

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/jaxws22/EndpointImpl.java
    cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/jaxws22/EndpointImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/jaxws22/EndpointImpl.java?rev=1496737&r1=1496736&r2=1496737&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/jaxws22/EndpointImpl.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/jaxws22/EndpointImpl.java
Wed Jun 26 05:28:17 2013
@@ -108,7 +108,7 @@ public class EndpointImpl extends org.ap
     public void publish(javax.xml.ws.spi.http.HttpContext context) {
         ServerFactoryBean serverFactory = getServerFactory();
         if (serverFactory.getDestinationFactory() == null) {
-            serverFactory.setDestinationFactory(new JAXWSHttpSpiTransportFactory(getBus(),
context));
+            serverFactory.setDestinationFactory(new JAXWSHttpSpiTransportFactory(context));
         }
         super.publish(context.getPath());
     }

Modified: cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java?rev=1496737&r1=1496736&r2=1496737&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/JAXWSHttpSpiTransportFactory.java
Wed Jun 26 05:28:17 2013
@@ -33,15 +33,14 @@ public class JAXWSHttpSpiTransportFactor
     private HttpContext context;
     private JAXWSHttpSpiDestination destination;
 
-    public JAXWSHttpSpiTransportFactory(Bus bus, HttpContext context) {
+    public JAXWSHttpSpiTransportFactory(HttpContext context) {
         super();
         this.context = context;
-        this.bus = bus; //directly set the bus to prevent this factory from being registered
     }
 
-    public Destination getDestination(EndpointInfo endpointInfo) throws IOException {
+    public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException
{
         if (destination == null) { 
-            destination = new JAXWSHttpSpiDestination(getBus(), registry, endpointInfo);
+            destination = new JAXWSHttpSpiDestination(bus, registry, endpointInfo);
             // set handler into the provided HttpContext, our Destination hook into the server
container
             HttpHandlerImpl handler = new HttpHandlerImpl(destination);
             context.setHandler(handler);



Mime
View raw message