servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r515711 - /incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java
Date Wed, 07 Mar 2007 19:40:43 GMT
Author: gnodet
Date: Wed Mar  7 11:40:43 2007
New Revision: 515711

URL: http://svn.apache.org/viewvc?view=rev&rev=515711
Log:
SM-871: optimizations

Modified:
    incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java

Modified: incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java?view=diff&rev=515711&r1=515710&r2=515711
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java
(original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java
Wed Mar  7 11:40:43 2007
@@ -27,15 +27,7 @@
     }
     
     public static String getKey(ServiceEndpoint endpoint) {
-        QName serviceName = endpoint.getServiceName();
-        if (serviceName == null) {
-            throw new IllegalArgumentException("Endpoint: " + endpoint + " has no serviceName
defined");
-        }
-        String endpointName = endpoint.getEndpointName();
-        if (endpointName == null) {
-            throw new IllegalArgumentException("Endpoint: " + endpoint + " has no endpointName
defined");
-        }
-        return getKey(serviceName, endpointName);
+        return org.apache.servicemix.jbi.servicedesc.EndpointSupport.getKey(endpoint);
     }
     
     public static String getKey(Endpoint endpoint) {



Mime
View raw message