cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1358622 - /cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
Date Sat, 07 Jul 2012 19:20:28 GMT
Author: davidb
Date: Sat Jul  7 19:20:28 2012
New Revision: 1358622

URL: http://svn.apache.org/viewvc?rev=1358622&view=rev
Log:
Improve the debug output for exported endpoints.

Modified:
    cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java

Modified: cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java?rev=1358622&r1=1358621&r2=1358622&view=diff
==============================================================================
--- cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
(original)
+++ cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
Sat Jul  7 19:20:28 2012
@@ -18,6 +18,7 @@
   */
 package org.apache.cxf.dosgi.dsw.service;
 
+import java.util.Arrays;
 import java.util.Map;
 import java.util.Set;
 import java.util.logging.Level;
@@ -152,7 +153,9 @@ public class ExportRegistrationImpl impl
         } else {
             Set<Map.Entry<String,Object>> props = endpointDescription.getProperties().entrySet();
             for (Map.Entry entry : props) {
-                r += entry.getKey() + "  => " + entry.getValue() + "\n";
+                Object value = entry.getValue();
+                r += entry.getKey() + "  => " +
+                    (value.getClass().isArray() ? Arrays.toString((Object []) value) : value)
+ "\n";
             }
         }
         return r;



Mime
View raw message