cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1003650 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
Date Fri, 01 Oct 2010 21:10:40 GMT
Author: dkulp
Date: Fri Oct  1 21:10:39 2010
New Revision: 1003650

URL: http://svn.apache.org/viewvc?rev=1003650&view=rev
Log:
The one arg constructor can sometimes end up with a Bus, not the impl

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java?rev=1003650&r1=1003649&r2=1003650&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
Fri Oct  1 21:10:39 2010
@@ -180,9 +180,11 @@ public class EndpointDefinitionParser ex
     public static class SpringEndpointImpl extends EndpointImpl
         implements ApplicationContextAware {
     
-        public SpringEndpointImpl(Object implementor) {
-            super((Bus)null, implementor);
+        public SpringEndpointImpl(Object o) {
+            super(o instanceof Bus ? (Bus)o : null,
+                o instanceof Bus ? null : o);
         }
+
         public SpringEndpointImpl(Bus bus, Object implementor) {
             super(bus, implementor);
         }



Mime
View raw message