You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by da...@apache.org on 2012/07/07 21:20:28 UTC

svn commit: r1358622 - /cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java

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;